Python: Difference between revisions

From TRACC Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Arrow ==
The default version of Python on Arrow is 2.7.5. and does not require a module to be loaded.  You can start the interactive version by entering the command
python2


To run the batch version, start your script with
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.
#!/usr/bin/env python2


The default version of python3 (3.6.8) along with sympy, numpy, and ipython are also installed, but you must load the python libraries. You can use the interactive version by entering the commands
  module load python/3.10.4
  module load python/3.8.2
python3


You can use the batch version by starting your script with
There are quite a few different versions available, and we can install Python modules in any version of Python as needed.
module load python/3.3.2
 
#!/usr/bin/env python2
You can see general information about modules [[Setting Up Your Environment#Accessing application software with modules| here.]]

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.