|
|
|
Python is an interpreted object-oriented programming language.
|
|
|
|
|
|
|
|
## Installed versions
|
|
|
|
|
|
|
|
Python is installed on Liger in version 2 and in version 3.
|
|
|
|
|
|
|
|
Important note: The support of version 2.7 ended on 01/01/2020. From this date, there is no longer any updates, not even for security patches; only version 3 is maintained.
|
|
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Python is accessible with the `module` command :
|
|
|
|
|
|
|
|
**To load version 3.7.1**
|
|
|
|
|
|
|
|
python/3.7.1
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
module load anaconda/3-2018.12
|
|
|
|
|
|
|
|
|
|
|
|
**To load version 2.7.12**
|
|
|
|
|
|
|
|
module load python/2.7.12
|
|
|
|
|
|
|
|
|
|
|
|
## Comments
|
|
|
|
|
|
|
|
If you wish to change to the other version of Python, you must open another session. |