Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| technical:recipes:tensorflow-in-virtualenv [2025-10-24 16:26] – [Create TensorFlow Virtualenv] thuachen | technical:recipes:tensorflow-in-virtualenv [2025-11-06 15:30] (current) – [Create TensorFlow Virtualenv] thuachen | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| </ | </ | ||
| - | These commands create any missing directories. | + | These commands create any missing directories. |
| ===== Create TensorFlow Virtualenv ===== | ===== Create TensorFlow Virtualenv ===== | ||
| - | We will need to load Minicoda | + | First, we will need to load the Miniconda VALET package |
| <code bash> | <code bash> | ||
| - | [(my_workgroup: | + | [(my_workgroup: |
| Adding package `miniconda/ | Adding package `miniconda/ | ||
| </ | </ | ||
| - | The '' | + | The '' |
| <code bash> | <code bash> | ||
| - | [(my_workgroup: | + | [(my_workgroup: |
| Loading channels: done | Loading channels: done | ||
| # Name | # Name | ||
| - | tensorflow | + | tensorflow |
| - | tensorflow | + | tensorflow |
| - | tensorflow | + | tensorflow |
| - | [(my_workgroup: | + | ... |
| - | Loading channels: done | + | |
| - | # Name | + | tensorflow |
| - | tensorflow | + | |
| - | tensorflow | + | |
| - | tensorflow | + | |
| - | tensorflow | + | |
| - | tensorflow | + | |
| tensorflow | tensorflow | ||
| - | tensorflow | + | tensorflow |
| - | tensorflow | + | |
| - | tensorflow | + | |
| </ | </ | ||
| - | + | All versions of the TensorFlow virtual environment will be stored in the directory '' | |
| - | All versions of the TensorFlow virtual environment will be stored in the directory '' | + | |
| <code bash> | <code bash> | ||
| - | [(my_workgroup: | + | [(my_workgroup: |
| - | 2.2.0-gpu | + | 2.17.0-cpu |
| - | [(my_workgroup: | + | [(my_workgroup: |
| - | [(my_workgroup: | + | [(my_workgroup: |
| - | 2.3.0-intel-python3.8 | + | 2.17.0-cuda |
| - | [(my_workgroup: | + | [(my_workgroup: |
| </ | </ | ||
| Line 63: | Line 55: | ||
| <code bash> | <code bash> | ||
| - | [(my_workgroup: | + | [(my_workgroup: |
| - | WARNING: A directory already exists at the target location '/ | + | WARNING: A directory already exists at the target location '/ |
| but it is not a conda environment. | but it is not a conda environment. | ||
| Continue creating environment (y/[n])? y | Continue creating environment (y/[n])? y | ||
| Line 76: | Line 68: | ||
| # To activate this environment, | # To activate this environment, | ||
| # | # | ||
| - | # $ conda activate / | + | # $ conda activate / |
| # | # | ||
| # To deactivate an active environment, | # To deactivate an active environment, | ||
| Line 86: | Line 78: | ||
| <code bash> | <code bash> | ||
| - | [(my_workgroup: | + | [(my_workgroup: |
| - | WARNING: A directory already exists at the target location '/ | + | WARNING: A directory already exists at the target location '/ |
| but it is not a conda environment. | but it is not a conda environment. | ||
| Continue creating environment (y/[n])? y | Continue creating environment (y/[n])? y | ||
| Line 99: | Line 91: | ||
| # To activate this environment, | # To activate this environment, | ||
| # | # | ||
| - | # $ conda activate / | + | # $ conda activate / |
| # | # | ||
| # To deactivate an active environment, | # To deactivate an active environment, | ||
| Line 105: | Line 97: | ||
| # $ conda deactivate | # $ conda deactivate | ||
| </ | </ | ||
| - | + | We will need to run the '' | |
| - | Ignore that '' | + | <code bash> |
| + | [(my_workgroup: | ||
| + | (/ | ||
| + | </ | ||
| + | Use '' | ||
| <code bash> | <code bash> | ||
| - | [(my_workgroup: | + | (/ |
| - | [(my_workgroup: | + | [(my_workgroup: |
| </ | </ | ||
| Line 127: | Line 123: | ||
| - action: source | - action: source | ||
| script: | script: | ||
| - | sh: anaconda-activate.sh | + | sh: miniconda-activate.sh |
| order: failure-first | order: failure-first | ||
| success: 0 | success: 0 | ||
| versions: | versions: | ||
| - | "2.2.0:gpu": | + | "2.17.0:cpu": |
| - | description: | + | description: |
| dependencies: | dependencies: | ||
| - | - intel-python/2020u2: | + | - miniconda/25.1.1.2 |
| - | "2.3.0:intel, | + | "2.17.0:cuda": |
| - | description: | + | description: |
| dependencies: | dependencies: | ||
| - | - intel-python/2020u2: | + | - miniconda/25.1.1.2 |
| </ | </ | ||
| Line 152: | Line 148: | ||
| - action: source | - action: source | ||
| script: | script: | ||
| - | sh: anaconda-activate.sh | + | sh: miniconda-activate.sh |
| order: failure-first | order: failure-first | ||
| success: 0 | success: 0 | ||
| versions: | versions: | ||
| - | "2.2.0:gpu": | + | "2.17.0:cpu": |
| - | description: | + | description: |
| dependencies: | dependencies: | ||
| - | - intel-python/2020u2: | + | - miniconda/25.1.1.2 |
| - | "2.3.0:intel, | + | "2.17.0:cuda": |
| - | description: | + | description: |
| dependencies: | dependencies: | ||
| - | - intel-python/2020u2: | + | - miniconda/25.1.1.2 |
| " | " | ||
| description: | description: | ||
| dependencies: | dependencies: | ||
| - | - intel-python/2018u3: | + | - miniconda/25.1.1.2 |
| </ | </ | ||
| Line 183: | Line 179: | ||
| [/ | [/ | ||
| tensorflow | tensorflow | ||
| - | * 2.2.0:gpu 2.2.0 with GPU support | + | * 2.17.0:cpu 2.17.0 with GPU support |
| - | 2.3.0:intel, | + | 2.17.0:cuda 2.17.0 with CUDA support |
| | | ||
| : | : | ||
| Line 197: | Line 193: | ||
| # Setup TensorFlow virtualenv: | # Setup TensorFlow virtualenv: | ||
| # | # | ||
| - | vpkg_require tensorflow/ | + | vpkg_require tensorflow/ |
| # | # | ||