Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip
titlevirtual environments

If you need to customise your Python environment, you may create a virtual environtment based on the installations provided. This may be useful if you need to use a newer version of a specific python package, but still want to benefit from the rest of the managed Python environment:

No Format
module load python3
mkdir -p $PERM/venvs
cd $PERM/venvs
python3 -m venv --system-site-packages myvenv

Then you can activate it when you need it with:

No Format
source $PERM/venvs/myenvmyvenv/bin/activate


The conda module

...

Note
titlemodules and conda incompatibilities

While conda may be seen as a way to set up custom Python environments, it also manages software beyond that, installing other packages and libraries not necessarily related to Python itself.

Because those may conflict with the software made available through modules, loading the conda module effectively disables all the other modules that may be loaded in your environment.

Predefined conda environments

Warning
titleExperimental

Still under heavy development, the list of packages available in those environments may not be complete

Although you can always create your own environments, ECMWF provides pre-defined environments with the same extras as the traditional Python3 module. You can see the list of predefined environments, as well as your own, by running:

...

See HPC2020: Conda for more information.