What versions of Python are available?
We have several different versions of the Python interpreter available: 3.6, 3.8, 3.9 and 3.10
Python v2.x is not supported.
Where are Python libraries installed?
Python libraries are sourced from system packages, python module bundles, from source code and from Anaconda. Each type of source has a different install location, as discussed in the next answer.
How do I use Python libraries?
For Python modules coming from system packages you need not make any changes to your environment paths. But to use any other form of Python libraries, you would need to add the install location to your environment paths.
Although possible, it is generally not recommended to mix Anaconda’s libraries with any of the bundles.
Refer to the tabs below for more information on how to use these Python modules.
Anaconda brings in a lot of open-source Python modules and it’s own Python interpreter. Popular modules like Jupyter Notebook, TensorFlow, CUDA, CuDNN, PyTorch, OpenCV etc are included in this install. The current version of Anaconda provides Python v3.10
To use Anaconda (with Python v3.10), run the following command:
module load python/anaconda
To use Python v3.9 via Anaconda, use the following command instead of above:
module load python/anaconda/py3.9-2022.08
To use Python v3.8 via Anaconda, use the following command instead of above:
module load python/anaconda/py3.8-2021.11
Once this has been done, verify that you are using Anaconda’s Python interpreter by the command:
which python
This should return:
/usr/local/anaconda3/<version>/bin/python
To see if a module is installed, use the conda
command. For instance, if you would like to check whether tensorflow is installed :
conda list tensorflow
# packages in environment at /usr/local/anaconda3/2023.03:
#
# Name Version Build Channel
tensorflow 2.12.0 pypi_0 pypi
tensorflow-estimator 2.12.0 pypi_0 pypi
tensorflow-io-gcs-filesystem 0.33.0 pypi_0 pypi
Now you may use the modules provided by Anaconda.
This is a complete bundle of various Python libraries for Python 3.6
To use this, run the following command:
module load python/bundle-3.6
To see what libraries are available in this bundle, you may browse the directory:
ls -l /usr/local/python-env/py36/lib/python3.6/site-packages
The versions of packages in the bundle are frozen. If you need a specific version for a package, please contact us.
Module Name | Version |
---|---|
apiclient | 1.0.4 |
dlib | 19.21.1 |
GDAL | 3.0.4 |
geohash2 | 1.1 |
h5py | 2.10.0 |
hyperopt | 0.2.5 |
ipykernel | 5.4.2 |
ipython | 7.16.1 |
jupyter-client | 6.1.10 |
jupyter-core | 4.7.0 |
jupyterlab-pygments | 0.1.2 |
Keras | 2.4.3 |
Keras-Preprocessing | 1.1.2 |
kiwisolver | 1.3.1 |
matplotlib | 3.3.3 |
mccabe | 0.6.1 |
mercantile | 1.1.6 |
mistune | 0.8.4 |
monotonic | 1.5 |
mtcnn | 0.1.0 |
multidict | 5.1.0 |
nbclient | 0.5.1 |
nbconvert | 6.0.7 |
nbformat | 5.0.8 |
networkx | 2.5 |
notebook | 6.1.6 |
numpy | 1.19.4 |
oauthlib | 3.1.0 |
opencv-contrib-python | 4.5.1.48 |
opencv-python | 4.5.1.48 |
pandas | 1.1.5 |
pandocfilters | 1.4.3 |
parso | 0.8.1 |
pathspec | 0.8.1 |
pbr | 5.5.1 |
pexpect | 4.8.0 |
Pillow | 8.1.0 |
pluggy | 0.13.1 |
protobuf | 3.14.0 |
pymongo | 3.11.2 |
pyrameter | 0.2.0.post2 |
pytorch-lightning | 1.1.3 |
pytube | 10.5.1 |
PyYAML | 5.3.1 |
scikit-learn | 0.24.0 |
scipy | 1.5.4 |
shadho | 0.3.0 |
Sphinx | 2.4.4 |
tabulate | 0.8.9 |
tensorboard | 2.4.0 |
tensorboard-plugin-wit | 1.7.0 |
tensorflow | 2.4.0 |
tensorflow-estimator | 2.4.0 |
tokenize-rt | 4.0.0 |
toml | 0.10.2 |
torch | 1.10.1 |
torchvision | 1.10.1 |
tornado | 6.1 |
yarl | 1.6.3 |
zarr | 2.6.1 |
zipp | 3.4.0 |
This is a complete bundle of various Python libraries for Python 3.8
To use this, run the following command:
module load python/bundle-3.8
To see what libraries are available in this bundle, you may browse the directory:
ls -l /usr/local/python-env/py38/lib/python3.8/site-packages
The versions of packages in the bundle are frozen. If you need a specific version for a package, please contact us.
Module Name | Version |
---|---|
geohash2 | 1.1 |
h5py | 3.6.0 |
hyperopt | 0.2.7 |
ipykernel | 6.7.0 |
ipython | 8.0.1 |
jupyter-client | 7.1.2 |
jupyter-core | 4.9.1 |
jupyterlab-pygments | 0.1.2 |
keras | 2.7.0 |
Keras-Preprocessing | 1.1.2 |
kiwisolver | 1.3.2 |
matplotlib | 3.5.1 |
mccabe | 0.6.1 |
mercantile | 1.1.6 |
mistune | 0.8.4 |
monotonic | 1.6 |
nbclient | 0.5.1 |
nbconvert | 6.4.0 |
nbformat | 5.1.3 |
networkx | 2.6.3 |
notebook | 6.4.7 |
numpy | 1.22.1 |
oauthlib | 3.1.1 |
opencv-contrib-python | 4.5.5.62 |
pandas | 1.4.0 |
pandocfilters | 1.5.0 |
parso | 0.8.3 |
pathspec | 0.9.0 |
pbr | 5.8.0 |
pexpect | 4.8.0 |
Pillow | 9.0.0 |
pluggy | 1.0.0 |
protobuf | 3.19.3 |
pytorch-lightning | 1.5.9 |
PyYAML | 6.0.0 |
scikit-learn | 1.0.2 |
scipy | 1.7.3 |
Sphinx | 4.4.0 |
tabulate | 0.8.9 |
tensorboard | 2.8.0 |
tensorboard-plugin-wit | 1.8.1 |
tensorflow | 2.7.0 |
tensorflow-estimator | 2.7.0 |
tokenize-rt | 4.2.1 |
toml | 0.10.2 |
torch | 0.10.1+cu113 |
torchaudio | 0.10.1+cu113 |
torchmetrics | 0.7.0 |
torchvision | 0.11.2+cu113 |
tornado | 6.1 |
zarr | 2.10.3 |
This is a complete bundle of various Python libraries for Python 3.9
To use this, run the following command:
module load python/bundle-3.9
To see what libraries are available in this bundle, you may browse the directory:
ls -l /usr/local/python-env/py39/lib/python3.9/site-packages
The versions of packages in the bundle are frozen. If you need a specific version for a package, please contact us.
Module Name | Version |
---|---|
geohash2 | 1.1 |
h5py | 3.11.0 |
hyperopt | 0.2.7 |
ipykernel | 6.15.1 |
ipython | 8.4.0 |
jupyter-client | 7.3.4 |
jupyter-core | 4.11.1 |
jupyterlab | 3.4.4 |
keras | 3.2.1 |
keras-cv | 0.8.2 |
Keras-Preprocessing | 1.1.2 |
matplotlib | 3.5.2 |
mccabe | 0.7.0 |
mercantile | 1.2.1 |
mistune | 0.8.4 |
nbclient | 0.6.6 |
nbconvert | 6.5.0 |
nbformat | 5.4.0 |
networkx | 2.8.5 |
notebook | 6.4.12 |
numpy | 1.26.4 |
oauthlib | 3.2.0 |
opencv-contrib-python | 4.6.0.66 |
pandas | 1.4.3 |
pandocfilters | 1.5.0 |
parso | 0.8.3 |
pexpect | 4.8.0 |
Pillow | 9.2.0 |
pluggy | 1.0.0 |
protobuf | 3.19.4 |
pyarrow | 13.0.0 |
pytorch-lightning | 1.6.5 |
PyYAML | 6.0.0 |
scikit-learn | 1.1.1 |
scipy | 1.13.0 |
Sphinx | 5.1.0 |
tensorboard | 2.16.2 |
tensorboard-plugin-wit | 1.8.1 |
tensorflow | 2.16.1 |
tensorflow-estimator | 2.9.1 |
tokenize-rt | 4.2.1 |
toml | 0.10.2 |
torch | 1.12.0+cu116 |
torchaudio | 0.12.0+cu116 |
torchmetrics | 0.9.3 |
torchvision | 0.13.0+cu116 |
tornado | 6.2 |
zarr | 2.12.0 |
This provides Python libraries for Python 3.10
To use this, run the following command:
module load python/bundle-3.10
A Python library I need is not installed. What are my options?
You could install the module in your home directory, see this page for more information. Or contact us and we will help you out.