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
With recent changes to the Conda license, we are unable to use the default conda channel without a paid license. You are still able to use conda/miniconda with the conda-forge
repository, but you must change it from using the default
repository. See Transitioning from defaults | conda-forge | community-driven packaging for conda and Saying Goodbye to Anaconda?. Finding a replacement for Conda | by Robert McDermott | Medium for some additional information. The recommend approach is now to use venv, uv, or Pixi for managing python environments. These approaches work better and avoid the license issues. See also Python | ExCL User Docs for more information on how to get started with Python.
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
Was this helpful?