Skip to content


conda is the package and environment manager from Anaconda. It is the main method other than compiling from source for users to install applications or dependencies at CCI. In most situations conda install package-name is a direct in replacement for PIP in instructions or examples you may be following.

Installing conda

CCI recommends using miniconda rather than the full anaconda distribution. Ensure the CCI proxy is configured in your environment before starting. The example below assumes this will be used on DCS. If you are using another cluster, please make sure you use the installer for the correct architecture, such as x86_64 instead of ppc64le.

  1. wget
  2. bash -p ~/barn/miniconda3
  3. You will need to read and accept the license terms.
  4. When prompted to run conda init, answer yes.
  5. source ~/.bashrc

The conda command should now be present in your environment.

You can search the Anaconda Cloud for available packages. Please pay attention to the availability of packages for the architecture of the system you're using.

Instructions for installing specific package versions and sourcing from specific channels can be found at Managing Packages

Installing conda on x86

  1. wget
  2. bash -p ~/barn/miniconda3x86
  3. You will need to read and accept the license terms.
  4. If this is the first conda install inside your project you can let conda auto initialize your environment.
    1. When prompted to run conda init, answer yes.
    2. source ~/.bashrc
  5. If this is a 2nd install of conda for a difference architecture do not run conda init. The installer will display a command to run to manually setup conda each time you login.

Common situations

Manually activating conda, or switching conda between x86/ppc installs

This command will activate the conda install at the path provided in your current shell eval "$(~/barn/miniconda3x86/bin/conda shell.bash hook)"

Activating a conda environment in a script or Slurm submission file

You can a activate conda environment using the following commands. Replace the path in source with the path for you conda install

source /gpfs/u/home/XXXX/XXXXyyyy/barn/miniconda3x86/etc/profile.d/
conda activate environment-name

Last update: January 13, 2022