You only need to do this one time.
module avail # look for dev/python/3
module load dev/python/3.4.2
python -m venv ~/venv # You can replace ~/venv with any directory if you wish
Do this each time you log in, before running python code.
module load dev/python/3.4.2
source ~/venv/bin/activate
One time per package. Your venv must be activated before running this command.
pip install modulename
pip list
Here is a variant that shows the exact version numbers of each package. The output can be saved to a file and passed to pip install
in another venv to replicate this one.
pip freeze
python myscript.py
Or run IPython for interactive work:
ipython
Note that you should do these in an interactive job so as not to use resources on the login nodes.
Can you please give the list of suggested libraries we started to install but it took too long?