Python on Zeus

1) Following Python version are installed on Zeus under /usr/local:

python-3.6.11/ python-3.7.9/ python-3.8.5/
   

2) Under each directory you'll find setup files for respective version, for example:

> ls -rtl /usr/local/python-3.8.5/

total 24

drwxr-xr-x 3 root root 4096 Sep 7 08:50 include

drwxr-xr-x 4 root root 4096 Sep 7 08:50 lib

drwxr-xr-x 3 root root 4096 Sep 7 08:50 share

drwxr-xr-x 2 root root 4096 Sep 7 08:50 bin

-rw-r--r-- 1 root root 190 Sep 7 08:52 setup.sh

-rw-r--r-- 1 root root 194 Sep 7 08:52 setup.csh

  

3) Please execute command

source /usr/local/python-3.8.5/setup.csh if you work in csh/tcsh or

source /usr/local/python-3.8.5/setup.sh if you work in bash
  

4) Then you will have access to respective version of python3 :

> which python3

/usr/local/python-3.8.5/bin/python3
  

5) When access to python3 is established, you can create virtual

environment (venv) and download/install/manage all components of python that you need.

Please find detailed information at the following link:

https://docs.python.org/3/tutorial/venv.html
 

6) After installing virtual environment under your home directory, in order to use it for submitting PBS jobs, please introduce

following lines into your PBS to script:

source python_env/bin/activate

/home/username/python_env/bin/python3 python_script.py

deactivate