software:miniconda:darwin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:miniconda:darwin [2025-11-06 15:35] – [Installing Applications with Conda] thuachensoftware:miniconda:darwin [2025-11-06 15:39] (current) – [Migrating Environments] thuachen
Line 67: Line 67:
 </code> </code>
  
 +===== Migrating Environments =====
 +
 +In the terminal window, to view the environments available to you, use
 +<code bash>
 +[(my_workgroup:user)@login01 ~]$ conda env list
 +# conda environments:
 +#
 +base                   /opt/shared/miniconda/25.1.1.2
 +                      */lustre/workgroup/sw/myenv
 +</code>
 +
 +After activating the desired environment, export the current environment,
 +<code bash>
 +[(my_workgroup:user)@login01 ~]$ conda activate /lustre/workgroup/sw/myenv
 +(/lustre/workgroup/sw/myenv)[(my_workgroup:user)@login01 ~]$ conda export --file=myenv.yaml
 +name: /lustre/workgroup/sw/myenv
 +channels:
 +  - conda-forge
 +dependencies:
 +  - _libgcc_mutex=0.1=conda_forge
 +  - _openmp_mutex=4.5=2_gnu
 +  - bzip2=1.0.8=hda65f42_8
 +  - ca-certificates=2025.10.5=hbd8a1cb_0
 +  - cuda-version=11.8=h70ddcb2_3
 +  - cudatoolkit=11.8.0=h4ba93d1_13
 +  - cudnn=8.9.7.29=hbc23b4c_3 
 +...
 +...
 +
 +prefix: /lustre/workgroup/sw/myenv  
 +</code>
 +Then you can duplicate the same environment with
 +<code bash>
 +(/lustre/workgroup/sw/myenv)[(my_workgroup:user)@login01 ~]$ conda deactivate
 +[(my_workgroup:user)@login01 ~]$ conda create -p /lustre/workgroup/sw/myenv_2 -f myenv.yml
 +</code>
 +
 +===== Recipes ====
 +
 +Examples documented as recipes to be used for specific installations, including using a ''workgroup'' directory as well as creating VALET packages for these environments and job scripts setup for batch runs, but can also perhaps help others in solving similar installation dilemmas.
 +
 +  * [[technical:recipes:tensorflow-in-virtualenv|Building a TensorFlow Python Virtual Environment]]
  • software/miniconda/darwin.1762461356.txt.gz
  • Last modified: 2025-11-06 15:35
  • by thuachen