conda and mamba on Rackham@UPPMAX, Dadel@PDC
Note: the following instructions do not apply for Bianca!
In case you insist using conda from the module system, please follow these instructions. Conda - best practices @ UPPMAX
If you experience unexpected problems with the conda
provided by the module system on Rackham or anaconda3
on Dardel, you can easily install your own and maintain it yourself.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
Important: Please, install miniforge3
or miniconda3
in your project folder!
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
Home folders at UPPMAX have 32GB (25GB on Dardel) which is rather limited storage space for most common conda installations.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
Important: Please, install miniforge3
or miniconda3
in your project folder!
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
- Take some precautions by (re)moving the
.conda
directory and .condarc
in your home folder if you had ones from previous use. Look in your ~/.bashrc
and remove leftovers from other conda installations. Delete everything between ## >>> conda initialize >>>
and ## <<< conda initialize <<<
including these two lines. Remove any exports related to conda i.e. VARIABLES starting with CONDA_
miniforge3
https://github.com/conda-forge/miniforge
Download the installation media, run the installation, read and accept the user agreement, and redirect the installation to your project folder, preferably in /proj/naiss2023-XXX-XX/nobackup/miniforge3
. Choose to initialize the shell.
- Logout and login again to pickup the new
conda
setup, then disable the auto activation of the base environment. Working from the conda base environment might interfere with the software modules provided by the computer center.
- Logout and login again to get the final setup active.
- Check that
conda
works
- Check
- OPTIONAL: Define
CONDA_ENVS_PATH
if you want to specify different location than the default miniconda3/miniforge3 sub-folder for the new conda environments.
Advantages and disadvantages of user/project installation
Advantages:
- Full control over the installation.
- No specific setup i.e. one can follow the regular installation instructions provided by developers.
- Environments will be installed in subfolder of the installation i.e. in your project folder.
- Faster solutions for installations - conda does not have to search through all available indexes Rackham but only the one you provide.
- You can install in the
(base)
environment (although not a good practice).
Disadvantages
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
You need to maintain the installation - setup, cleaning cache, update, etc.
- Not applicable solution for isolated clusters like Bianca.
If you insist on using conda from the module system
Conda - "best practices" - UPPMAX
Beyond conda and mamba
- Alternatively, this might be more than enough to get you working - micromamba
- Tired of conda - try pixi - faster, python independent package manager and more utilizing the conda packaging ecosystem.
Troubleshooting conda provided on Rackham
- If it complains - it is time to clean the mess.
- Look in your
~/.bashrc
for conda configuration and remove these lines - if uncertain - copy them in another file, for safetyβ¦
- run
conda init --reverse
to reverse the damage. This is problematic only on Rackham and Bianca, where this is not the correct way to activate conda.
- logout and login again.