Hoffman2:Python: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
== Use Python in Hoffman2 == | == Use Python in Hoffman2 == | ||
=== Use Python modules === | |||
module av python | |||
This will show all the available Python modules in Hoffman2 | |||
python/2.7.15 python/2.7.18 python/3.6.8(default) python/3.7.3 python/3.9.6 | |||
Be aware that the default version is python/3.6.8. To use a specific version, use command for example | |||
module load python/3.7.3 | |||
=== Install Python libraires === | |||
pip3 install library_name --user | |||
=== Use Conda for Python virtual environment === | |||
==Python 2 Statement== | ==Python 2 Statement== |
Revision as of 23:19, 10 January 2022
Use Python in Hoffman2
Use Python modules
module av python
This will show all the available Python modules in Hoffman2
python/2.7.15 python/2.7.18 python/3.6.8(default) python/3.7.3 python/3.9.6
Be aware that the default version is python/3.6.8. To use a specific version, use command for example
module load python/3.7.3
Install Python libraires
pip3 install library_name --user
Use Conda for Python virtual environment
Python 2 Statement
Python 2 has officially reached its End of Life (EOL). That means that it will no longer be receiving active support or updates from their core development team as of January 1st, 2020.
As a result, several open-source packages have pledged to drop support for Python 2.7. For more information about these participating projects, please refer to the Python 3 Statement https://python3statement.org/