Python-Sapelo2: Difference between revisions
No edit summary |
|||
Line 50: | Line 50: | ||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ||
</pre> | </pre> | ||
---- | |||
[[#top|Back to Top]] | |||
===About Python packages=== | ===About Python packages=== | ||
Line 87: | Line 90: | ||
Note that, when you load SciPy-bundle module, a specific version of Python that the package is built for will be loaded at first. This means that you don't have to load the Python module separately from loading SciPy-bundle module. For example, when you load SciPy-bundle/2020.03-foss-2019b-Python-3.8.2, Python 3.8.2 will be load before SciPy-bundle module is loaded. | Note that, when you load SciPy-bundle module, a specific version of Python that the package is built for will be loaded at first. This means that you don't have to load the Python module separately from loading SciPy-bundle module. For example, when you load SciPy-bundle/2020.03-foss-2019b-Python-3.8.2, Python 3.8.2 will be load before SciPy-bundle module is loaded. | ||
---- | |||
[[#top|Back to Top]] | |||
====matplotlib==== | ====matplotlib==== | ||
Line 123: | Line 129: | ||
Likewise, when you load matplotlib module, a specific version of Python that matplotlib is built for will be loaded at first, which means you don't have to load the Python module separately from loading matplotlib module. For example, when you load matplotlib/3.1.1-foss-2019b-Python-3.8.2, Python 3.8.2 will be load before matplotlib module is loaded. | Likewise, when you load matplotlib module, a specific version of Python that matplotlib is built for will be loaded at first, which means you don't have to load the Python module separately from loading matplotlib module. For example, when you load matplotlib/3.1.1-foss-2019b-Python-3.8.2, Python 3.8.2 will be load before matplotlib module is loaded. | ||
---- | |||
[[#top|Back to Top]] | |||
===Examples=== | ===Examples=== | ||
Line 165: | Line 174: | ||
python myProgram.py | python myProgram.py | ||
</pre> | </pre> | ||
---- | |||
[[#top|Back to Top]] | |||
=== Documentation === | === Documentation === |
Revision as of 14:46, 28 October 2020
Category
Programming
Program On
Sapelo2
Version
2.7.14, 2.7.15, 2.7.16, 3.7.4, 3.8.2
Author / Distributor
The Python Software Foundation
Description
Python is a programming language.
Running Program
Also refer to Running Jobs on Sapelo
We have a set of pythons installed on Sapelo2:
ml spider Python ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Python: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Python is a programming language that lets you work more quickly and integrate your systems more effectively. Versions: Python/2.7.14-GCCcore-6.4.0-bare Python/2.7.15-fosscuda-2018b Python/2.7.16-GCCcore-8.3.0 Python/3.7.4-GCCcore-8.3.0 Python/3.8.2-GCCcore-8.3.0 Other possible modules matches: Biopython Boost.Python GitPython IPython bx-python netcdf4-python openslide-python ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ To find other possible module matches execute: $ module -r spider '.*Python.*' ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ For detailed information about a specific "Python" package (including how to load the modules) use the module's full name. Note that names that have a trailing (E) are extensions provided by other modules. For example: $ module spider Python/3.8.2-GCCcore-8.3.0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
About Python packages
Some common third-party Python packages are individually installed in their separate modules on the cluster.
numpy, scipy, pandas
The numpy, scipy, pandas, mpi4py, mpmath, and deap packages are installed in SciPy-bundle module:
ml spider SciPy-bundle ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- SciPy-bundle: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Description: Bundle of Python packages for scientific software Versions: SciPy-bundle/2019.10-foss-2019b-Python-2.7.16 SciPy-bundle/2019.10-foss-2019b-Python-3.7.4 SciPy-bundle/2019.10-fosscuda-2019b-Python-2.7.16 SciPy-bundle/2019.10-fosscuda-2019b-Python-3.7.4 SciPy-bundle/2019.10-intel-2019b-Python-2.7.16 SciPy-bundle/2019.10-intel-2019b-Python-3.7.4 SciPy-bundle/2020.03-foss-2019b-Python-3.8.2 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ For detailed information about a specific "SciPy-bundle" package (including how to load the modules) use the module's full name. Note that names that have a trailing (E) are extensions provided by other modules. For example: $ module spider SciPy-bundle/2020.03-foss-2019b-Python-3.8.2 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Note that, when you load SciPy-bundle module, a specific version of Python that the package is built for will be loaded at first. This means that you don't have to load the Python module separately from loading SciPy-bundle module. For example, when you load SciPy-bundle/2020.03-foss-2019b-Python-3.8.2, Python 3.8.2 will be load before SciPy-bundle module is loaded.
matplotlib
The matplotlib package is installed in matplotlib module.
ml spider matplotlib -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- matplotlib: -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Description: matplotlib is a python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms. matplotlib can be used in python scripts, the python and ipython shell, web application servers, and six graphical user interface toolkits. Versions: matplotlib/2.2.3-fosscuda-2018b-Python-2.7.15 matplotlib/2.2.4-foss-2019b-Python-2.7.16 matplotlib/2.2.4-intel-2019b-Python-2.7.16 matplotlib/2.2.5-foss-2019b-Python-2.7.16 matplotlib/2.2.5-fosscuda-2019b-Python-2.7.16 matplotlib/3.1.1-foss-2019b-Python-3.7.4 matplotlib/3.1.1-foss-2019b-Python-3.8.2 matplotlib/3.1.1-fosscuda-2019b-Python-3.7.4 matplotlib/3.1.1-intel-2019b-Python-3.7.4 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- For detailed information about a specific "matplotlib" package (including how to load the modules) use the module's full name. Note that names that have a trailing (E) are extensions provided by other modules. For example: $ module spider matplotlib/3.1.1-intel-2019b-Python-3.7.4 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Likewise, when you load matplotlib module, a specific version of Python that matplotlib is built for will be loaded at first, which means you don't have to load the Python module separately from loading matplotlib module. For example, when you load matplotlib/3.1.1-foss-2019b-Python-3.8.2, Python 3.8.2 will be load before matplotlib module is loaded.
Examples
Example of using Python3
To use Python 3.8.2, you can use the following in the first line of your Python code:
#!/apps/eb/Python/3.8.2-GCCcore-8.3.0/bin/python3
Or use the following line in the first line of your Python code:
#!/usr/bin/env python
an then you run your program as:
module load Python/3.8.2-GCCcore-8.3.0 python myProgram.py
Example of using Python2
To use Python 2.7.16, you can use the following in the first line of your Python code:
#!/apps/eb/Python/2.7.16-GCCcore-8.3.0/bin/python
Or use the following line in the first line of your Python code:
#!/usr/bin/env python
an then you run your program as:
module load Python/2.7.16-GCCcore-8.3.0 python myProgram.py
Documentation
Please see http://www.python.org/
Installation
EasyBuild recipes
System
64-bit Linux