Skip to content

Anaconda Python

Anaconda Python and Its capabilities

The cluster provides an Anaconda Python module, which is a Python distribution environment with common packages included. A key feature of this distribution is the ability to create conda environments.

This feature allows users to install independent sets of Python packages, greatly simplifying various Python-based computations. Below is an example of creating and using such an environment.

First load Anaconda Python:

module load anaconda3
guix install python-anaconda

Check available environments (you’ll see only base):

conda info --envs

Create a new environment, specifying a name (-n) and any desired packages and versions:

conda create -n my_py35_env python=3.5 scipy numpy

List environments again to confirm your new one appears:

conda info --envs

Activate the environment (you can also do this inside sbatch scripts):

source activate my_py35_env

Verify the Python version matches expectations:

python --version

Deactivate the environment to return to base (not needed in sbatch scripts):

conda deactivate

Additional Resources