By default, conda environments are installed in the user’s home directory at `~/.conda/envs`.
conda caches and package tarballs are stored in `~/.conda/` as well.
For larger or many conda environments, the size of the directory `~/.conda/` can easily reach the `$HOME` space quota limit of 20GB per user.
In addition to [Moving and Recreating Existing Environment](#moving-and-recreating-existing-environment), one can remove unused conda packages and caches.
{{% panel theme="info" header="Remove unused conda packages and caches" %}}
{{<highlightbash>}}
conda clean --all
{{</highlight>}}
{{% /panel %}}
{{% notice info %}}
Please note that this command will only remove index cache, and unused cache packages and tarballs and will not
affect nor break the current conda environments you have.
{{% /notice %}}
### Creating Custom GPU Anaconda Environment
We provide GPU versions of various frameworks such as `tensorflow`, `keras`, `theano`, via [modules](../../modules).
...
...
@@ -357,3 +425,22 @@ Jupyter Notebook. To do so, follow the steps below, replacing
[Mamba](https://mamba.readthedocs.io/en/latest/) is an alternative to Conda that is in general faster and performs better at resolving dependencies in conda environments.
Mamba is available as part of the `anaconda` modules on Swan.
Mamba can be used by simply replacing `conda` with `mamba` in all `conda` commands provided here.
{{% panel theme="info" header="Load the Anaconda module to start using Mamba" %}}
{{<highlightbash>}}
module load anaconda
{{</highlight>}}
{{% /panel %}}
To create a new environment called 'mynumpy' and install NumPy version 1.17, along with any required dependencies, the command is:
{{% panel theme="info" header="Create a new environment by providing a name and package specification" %}}