Python

Python programming language

Version: 3.11.7 (G100) 3.9.4 (MARCONI) 3.10.8 (LEONARDO)

Availability: GALILEO100, LEONARDO, MARCONI

Target: all

Official web site: https://www.python.org

Related Commands:

In order to install any package of python you need to use the “virtualenv” tool by following these instructions:

# using python interpreter from the module
$ module load python/3.8.2

# creating a virtualenv, basically just a new directory (my_venv) containing all you need
$ python3 -m venv my_venv

# activating the new virtualenv
$ source my_venv/bin/activate

# installing whatever you need (e.g matplotlib)
(my_venv) $ pip3 install matplotlib

# deactivating the virtualenv when you are done working
(my_venv) $ deactivate