Skip to content

Python

Python is a high-level, general-purpose programming language. Python supports multiple programming paradigms, including structured, object-oriented, and functional programming. It is used in a wide range of applications such as machine learning, molecular dynamics, scientific computing, automation, image processing, etc.

Availability

Software Version Dependent Toolchain Module Load Command
Python 3.13.1 foss/2025a module load foss/2025a Python/3.13.1
Python 3.12.3 foss/2024a module load foss/2024a Python/3.12.3

Python libraries

Apart from Python’s standard library, Python offers a wide range of additional libraries that need to be loaded as modules before users can use these. Here, we list these additional libraries. Please contact us to file a ticket with Service Now in case you do not find the libraries you want to use.

Software Version Dependent Toolchain Module Load Command
matplotlib 3.10.3 foss/2025a module load foss/2025a matplotlib/3.10.3
SciPy-bundle 2025.06 foss/2025a module load foss/2025a SciPy-bundle/2025.06
matplotlib 3.9.2 foss/2024a module load foss/2024a matplotlib/3.9.2
SciPy-bundle 2024.05 foss/2024a module load foss/2024a SciPy-bundle/2024.05

For using multiple libraries, you simply need to add the library name in module load command. For example, to load NumPy, Matplotlib, and SciPy together, you need to use the following command.

module load foss/2025a SciPy-bundle matplotlib

Using Conda or pip to Install Python Libraries

Since sometimes users a specific version of Python libraries, it is advisable to use Conda so that users can create their own environment where they can install required packages based on their requirements. Conda is a cross-language package manager that excels at managing environments and dependencies, making it suitable for scientific computing and data science projects. It can handle non-Python libraries and binaries, offering a comprehensive solution. On the other hand, pip is the default Python package installer, known for its simplicity and compatibility with the Python Package Index (PyPI). While both tools serve the same purpose, it is generally recommended to choose one and remain consistent within a project to avoid potential conflicts. Please see Conda Documentation on how to install Python packages via Conda.