Python: Difference between revisions

From TRACC Wiki
Jump to navigation Jump to search
(Created page with "== Zephyr == The default version of Python on the Zephyr cluster is 2.6.6. Python 2.7 and wxPython2.7 are also installed and do not require a module to be loaded. Python 3...")
 
No edit summary
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Zephyr ==
The default version of Python on the Zephyr cluster is 2.6.6.  Python 2.7 and wxPython2.7 are also installed and do not require a module to be loaded. 


Python 3.3.2 along with sympy, numpy, and ipython are also installed. To use this version of Python, please load the python/3.3.2 module
The current operating system on the cluster is CentOS 7, and the default version of Python installed as part of the operating system is Python 2. Ordinarily, you should avoid using this built-in version and rather load a module.


  $ module load python/3.3.2
  module load python/3.10.4
$ python
or
$ ipython


== Phoenix ==
There are quite a few different versions available, and we can install Python modules in any version of Python as needed.


The default version of Python on the Phoenix cluster is 2.3.4, the version which comes with Red Hat 4.5. We also have versions 2.6 and 3.0 installed in /soft/python/bin. To use them, you'll need to either fully specify the path to the version you want to use, or load the appropriate module. The modules alias python to the module version and set LD_LIBRARY_PATH, which helps to eliminate some errors that you may otherwise encounter when you use Python modules.
You can see general information about modules [[Setting Up Your Environment#Accessing application software with modules| here.]]
 
$ /soft/python/bin/python2.6
$ /soft/python/bin/python3.0
 
or
 
module load python/2.6
module load python/3.0
 
For example,
 
$ module load python/2.6
$ python
 
== Python modules ==
 
We add Python modules (i.e., libraries) as users request them. The non-default site packages are in /soft/python/lib/python<version>/site-packages.
 
If you encounter any problems with a Python library module, try loading the Python environment module (as above).

Latest revision as of 20:10, December 4, 2023

The current operating system on the cluster is CentOS 7, and the default version of Python installed as part of the operating system is Python 2. Ordinarily, you should avoid using this built-in version and rather load a module.

module load python/3.10.4

There are quite a few different versions available, and we can install Python modules in any version of Python as needed.

You can see general information about modules here.