Conda and Spack Installation
The recommended way to install Conda and Spack.
This guide goes over the recommended way to install Conda and Spack in ExCL. If you are already familiar with the Conda and Spack installation process, then these tools can be installed to their default locations. One recommendation is to store the environment.yml
and spack.yaml
files in your git repositories to make it easy to recreate the Conda and Spack environments required for that project. The remainder of this page goes over the installation in more detail.
Installing Conda
Instead of installing Anaconda yourself, you can use the anaconda already installed as a module. To load the module, use module load anaconda3
.
See the Conda Docs for the latest installation instructions. I install Miniconda instead of Anaconda since I do not require the 3GB of included packages that come with Anaconda and I will be installing my own packages anyways.
Follow the prompts on the installer screens. Accept the license agreements. Specify /home/$USER/conda
as the installation location. Choose if you want the installer to initialize Miniconda.
Improving Conda Environment Solver Performance
To improve the performance of the Conda environment solver, you can use the conda-libmamba-solver
plugin which allows you to use libmamba
, the same libsolv
-powered solver used by mamba and micromamba, directly in conda
.
The quick start guide is below.
See Anaconda | A Faster Solver for Conda: Libmamba and Getting started — conda-libmamba-solver for more information.
Installing Spack
Last updated