| Next revision | Previous revision |
| software:miniforge:caviness [2026-03-26 11:44] – Created Caviness-specific Miniforge page mbotto | software:miniforge:caviness [2026-03-26 11:49] (current) – Switch order of notes after conda create mbotto |
|---|
| <code> | <code> |
| $ vpkg_require miniforge/25.11.0-1 | $ vpkg_require miniforge/25.11.0-1 |
| | Adding package `miniforge/25.11.0-1` to your environment |
| </code> | </code> |
| |
| ===== Creating Python virtual environments with Conda ===== | ===== Creating Python virtual environments with Conda ===== |
| |
| Once you have loaded Miniforge, you can create a new Conda environment with the ''conda create'' command, passing in the packages you want to be included in the environment. We also strongly recommend using the ''%%--prefix%%'' option to specify a path for your environment in your [[abstract:caviness:filesystems:filesystems#workgroup-storage|workgroup storage]] to avoid filling up your home storage. It may be convenient for you to use the ''WORKDIR_SW'' environment variable, which is set automatically when you start a shell in your workgroup. | Once you have loaded Miniforge, you can create a new Conda environment with the ''conda create'' command, passing in the packages you want to include in the environment. We also strongly recommend using the ''%%--prefix%%'' option to specify a path for your environment in your [[abstract:caviness:filesystems:filesystems#workgroup-storage|workgroup storage]] to avoid filling up your home storage. It may be convenient for you to use the ''WORKDIR_SW'' environment variable, which is set automatically when you start a shell in your workgroup. |
| |
| For example, to create an environment in your workgroup storage that includes the latest version of Python detected by Conda: | For example, to create an environment in your workgroup storage that includes the latest version of Python detected by Conda: |
| |
| <note important> | <note important> |
| By default, Conda environments created by ''%%--%%name'' or ''-n'' are in your home directory. However, the limited home directory quotas (20 GB) can be filled up quickly. It is recommended to create environments by specifying path ''%%--prefix%%'' in your work directory instead of ''$HOME'' to avoid quota issues. | Make sure to list all of the packages you need in the ''conda create'' command. Conda recommends that you list all the packages you want to install at once (rather than in separate ''conda install'' commands after creating the environment) to avoid dependency conflicts. |
| </note> | </note> |
| |
| <note important> | <note important> |
| Make sure to list all of the packages you need in the ''conda create'' command. Conda recommends that you list all the packages you want to install at once (rather than in separate ''conda install'' commands after creating the environment) to avoid dependency conflicts. | By default, Conda environments created by ''%%--%%name'' or ''-n'' are in your home directory. However, the limited home directory quotas (20 GB) can be filled up quickly. It is recommended to create environments by specifying path ''%%--prefix%%'' in your work directory instead of ''$HOME'' to avoid quota issues. |
| </note> | </note> |
| |