Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| software:miniconda:caviness [2025-11-06 15:15] – [Migrating Environments] thuachen | software:miniconda:caviness [2025-11-06 15:38] (current) – [Migrating Environments] thuachen | ||
|---|---|---|---|
| Line 62: | Line 62: | ||
| [(my_workgroup: | [(my_workgroup: | ||
| </ | </ | ||
| + | To remove the unused packages and caches, do | ||
| + | <code bash> | ||
| + | [(my_workgroup: | ||
| + | </ | ||
| + | |||
| ===== Migrating Environments ===== | ===== Migrating Environments ===== | ||
| Line 70: | Line 75: | ||
| # | # | ||
| base / | base / | ||
| - | / | + | */ |
| </ | </ | ||
| After activating the desired environment, | After activating the desired environment, | ||
| - | < | + | < |
| - | conda activate myenv | + | [(my_workgroup: |
| - | conda export --file=environment.yaml # Auto-detects YAML format | + | (/ |
| - | conda export | + | name: / |
| - | conda export --file=explicit.txt # Auto-detects explicit format | + | channels: |
| - | conda export | + | - conda-forge |
| + | dependencies: | ||
| + | | ||
| + | | ||
| + | - bzip2=1.0.8=hda65f42_8 | ||
| + | | ||
| + | - cuda-version=11.8=h70ddcb2_3 | ||
| + | | ||
| + | - cudnn=8.9.7.29=hbc23b4c_3 | ||
| + | ... | ||
| + | ... | ||
| + | |||
| + | prefix: / | ||
| </ | </ | ||
| - | Then you can create | + | Then you can duplicate |
| - | < | + | < |
| - | conda create -p myenv -f environment.yml | + | (/ |
| + | [(my_workgroup: | ||
| </ | </ | ||