Update Python on JSC machines authored by Johannes Keller's avatar Johannes Keller
......@@ -16,7 +16,7 @@ This will provide with you a reasonably large set of Python modules on JSC machi
# Looking for Python modules on JSC machines
Maybe the general Python configuration does not provide all the Python modules you need. Then, you can take the following steps, looking for the Python module `pyxyz`
Maybe the general Python configuration does not provide all the Python modules you need. Then, you can take the following steps. The example supposes you are looking for a Python module called `pyxyz`.
1. Search for a JSC module containing the Python module: `module keyword pyxyz`. If you find one, for example called `XYZ/2024`, load the module using `module load XYZ/2024`
2. Make a Python virtual environment under `$PROJECT/$USER`: `python -m venv $PROJECT/$USER/pyvenv` and activate it (`source $PROJECT/$USER/pyvenv/bin/activate`) before running the pip install command `pip install pyxyz`. This way the Python module will not be saved in `$HOME`, where there is not much space. The Python virtual environment can be closed by the command `deactivate`.
\ No newline at end of file