CPython

This page refers to CPython, for conda environments and other python software, refer to the Conda & Python page.

CPython (python) is the reference and most popular Python interpreter/environment. The interpreter’s program’s name is simply python, pythonX, and pythonX.Y for CPython X.Y. In all software stacks, the module name is python. To load a specific version, run

module load python/VERSION

To load the default version, run

module load python
Warning

All nodes have CPython as part of the base operating system (referred to as the system python), which tends to be quite old and can and will change over time. Make sure you are actually using the CPython from the module you load, not the one from the base operating system. An easy way to check is to run:

which python

which will print the path to the python executable. If it is something like /usr/bin/python, you are using the system python.