Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| software:miniconda:darwin [2025-10-15 15:47] – thuachen | software:miniconda:darwin [2025-11-06 15:39] (current) – [Migrating Environments] thuachen | ||
|---|---|---|---|
| Line 20: | Line 20: | ||
| ===== Installing Applications with Conda ===== | ===== Installing Applications with Conda ===== | ||
| - | You can create a new Conda environment either by name or by path. | + | <note tip> |
| - | <code> | + | Note: In the examples below, please modify paths, usernames, and environment names (e.g., ''/ |
| - | conda create --name | + | </note> |
| - | </code> | + | You can create a new Conda environment with a specific package and in a specific path. For example, to create an environment in a specific path, such as your '' |
| - | By default, | + | < |
| - | < | + | [(my_workgroup: |
| - | conda create -p $WORKDIR/$USER/ | + | |
| </ | </ | ||
| + | |||
| + | <note important> | ||
| + | By default, Conda environments created by '' | ||
| + | </ | ||
| After creating the Conda environments, | After creating the Conda environments, | ||
| - | < | + | < |
| - | conda activate myenv | + | [(my_workgroup: |
| + | </ | ||
| + | You can install the desired packages in the current environment, | ||
| + | <code bash> | ||
| + | (/ | ||
| + | </ | ||
| + | To list packages in the currently active environment, | ||
| + | <code bash> | ||
| + | (/ | ||
| + | # packages in environment at / | ||
| + | # | ||
| + | # Name Version | ||
| + | _libgcc_mutex | ||
| + | _openmp_mutex | ||
| + | absl-py | ||
| + | astunparse | ||
| + | bzip2 | ||
| + | ca-certificates | ||
| + | certifi | ||
| + | </ | ||
| + | To deactivate the environment, | ||
| + | <code bash> | ||
| + | (/ | ||
| + | [(my_workgroup: | ||
| + | </ | ||
| + | To remove an environment, | ||
| + | <code bash> | ||
| + | [(my_workgroup: | ||
| + | </ | ||
| + | To remove the unused packages and caches, do | ||
| + | <code bash> | ||
| + | [(my_workgroup: | ||
| + | </ | ||
| + | |||
| + | ===== Migrating Environments ===== | ||
| + | |||
| + | In the terminal window, to view the environments available to you, use | ||
| + | <code bash> | ||
| + | [(my_workgroup: | ||
| + | # conda environments: | ||
| + | # | ||
| + | base / | ||
| + | */ | ||
| + | </ | ||
| + | |||
| + | After activating the desired environment, | ||
| + | <code bash> | ||
| + | [(my_workgroup: | ||
| + | (/ | ||
| + | name: / | ||
| + | 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: / | ||
| </ | </ | ||
| - | Then you can install | + | Then you can duplicate |
| - | < | + | < |
| - | conda install < | + | (/ |
| + | [(my_workgroup: | ||
| </ | </ | ||
| + | |||
| + | ===== Recipes ==== | ||
| + | |||
| + | Examples documented as recipes to be used for specific installations, | ||
| + | |||
| + | * [[technical: | ||