Commit dd5439c9 authored by Lukáš Krupčík's avatar Lukáš Krupčík

revision ~]$ -> $

parent 19970283
......@@ -18,7 +18,7 @@ On the clusters we have the Anaconda2 and Anaconda3 software installed. How to u
Use the command `ml av conda` to get up-to-date versions of the modules.
```console
~]$ ml av conda
$ ml av conda
------------- /apps/modules/lang ---------------------------------
Anaconda2/4.4.0 Anaconda3/4.4.0
......@@ -31,10 +31,10 @@ The default is Python 2.7
### First Usage Module Anaconda2
```console
~]$ ml Anaconda2/4.4.0
~]$ python --version
$ ml Anaconda2/4.4.0
$ python --version
Python 2.7.13 :: Anaconda 4.4.0 (64-bit)
~]$ conda install numpy
$ conda install numpy
Fetching package metadata .........
Solving package specifications: .
......@@ -55,8 +55,8 @@ CondaIOError: Missing write permissions in: /apps/all/Anaconda2/4.4.0
# This may be done using the command:
#
# $ conda create -n my_root --clone="/apps/all/Anaconda2/4.4.0"
~]$
~]$ conda create -n anaconda2 --clone="/apps/all/Anaconda2/4.4.0"
$
$ conda create -n anaconda2 --clone="/apps/all/Anaconda2/4.4.0"
Source: /apps/all/Anaconda2/4.4.0
Destination: /home/svi47/.conda/envs/anaconda2
The following packages cannot be cloned out of the root environment:
......@@ -76,8 +76,8 @@ Packages: 213
### Usage Module Anaconda2
```console
~]$ ml Anaconda2/4.4.0
~]$ source activate anaconda2
$ ml Anaconda2/4.4.0
$ source activate anaconda2
(anaconda2) ~]$
```
......@@ -88,10 +88,10 @@ The default is Python 3.6
### First usage Module Anaconda3
```console
~]$ ml Anaconda3/4.4.0
~]$ python --version
$ ml Anaconda3/4.4.0
$ python --version
Python 3.6.1 :: Anaconda 4.4.0 (64-bit)
~]$ conda install numpy
$ conda install numpy
Fetching package metadata .........
Solving package specifications: .
......@@ -112,8 +112,8 @@ CondaIOError: Missing write permissions in: /apps/all/Anaconda3/4.4.0
# This may be done using the command:
#
# $ conda create -n my_root --clone="/apps/all/Anaconda3/4.4.0"
~]$
~]$ conda create -n anaconda3 --clone="/apps/all/Anaconda3/4.4.0"
$
$ conda create -n anaconda3 --clone="/apps/all/Anaconda3/4.4.0"
Source: /apps/all/Anaconda3/4.4.0
Destination: /home/svi47/.conda/envs/anaconda3
The following packages cannot be cloned out of the root environment:
......@@ -131,14 +131,14 @@ Files: 6
# To deactivate this environment, use:
# > source deactivate anaconda3
#
~]$ source activate anaconda3
$ source activate anaconda3
(anaconda3) ~]$
```
### Usage Module Anaconda3
```console
~]$ ml Anaconda3/4.4.0
~]$ source activate anaconda3
$ ml Anaconda3/4.4.0
$ source activate anaconda3
(anaconda3) ~]$
```
......@@ -15,7 +15,7 @@ On the clusters we have the Python 2.X and Python 3.X software installed. How to
Use the command `ml av python/` to get up-to-date versions of the modules.
```console
~]$ ml av python/
$ ml av python/
-------------------------- /apps/modules/lang --------------------------
Python/2.7.8-intel-2015b Python/2.7.9-gompi-2015e Python/2.7.10-GCC-4.9.3-2.25-bare Python/2.7.11-intel-2016a Python/3.4.3-intel-2015b Python/3.5.2-intel-2017.00
......@@ -38,7 +38,7 @@ On the clusters we have the Python 2.X and Python 3.X software installed. How to
Python 2.7 is scheduled to be the last major version in the 2.x series before it moves into an extended maintenance period. This release contains many of the features that were first released in Python 3.1.
```console
~]$ ml av python/2
$ ml av python/2
----------------------------------------------------------------------------------------------- /apps/modules/lang ------------------------------------------------------------------------------------------------
Python/2.7.8-intel-2015b Python/2.7.9-GNU-5.1.0-2.25 Python/2.7.9-intel-2016.01 Python/2.7.11-foss-2016a Python/2.7.11-intel-2017a
......@@ -58,17 +58,17 @@ Python 2.7 is scheduled to be the last major version in the 2.x series before it
### Used Module Python/2.X
```console
~]$ python --version
$ python --version
Python 2.6.6
~]$ ml Python/2.7.13
~]$ python --version
$ ml Python/2.7.13
$ python --version
Python 2.7.1
```
### Packages in Python/2.X
```console
~]$ pip list
$ pip list
appdirs (1.4.3)
asn1crypto (0.22.0)
backports-abc (0.5)
......@@ -82,9 +82,9 @@ beautifulsoup4 (4.5.3)
### How to Install New Package to Python/2.X?
```console
~]$ ml Python/2.7.13
~]$ python --version
~]$ pip install wheel --user
$ ml Python/2.7.13
$ python --version
$ pip install wheel --user
Collecting wheel
Downloading wheel-0.30.0-py2.py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 835kB/s
......@@ -95,9 +95,9 @@ Successfully installed wheel-0.30.0
### How to Update Package in Python/2.X?
```console
~]$ ml Python/2.7.13
~]$ python --version
~]$ pip install scipy --upgrade --user
$ ml Python/2.7.13
$ python --version
$ pip install scipy --upgrade --user
Collecting scipy
Downloading scipy-0.19.1-cp27-cp27mu-manylinux1_x86_64.whl (45.0MB)
100% |████████████████████████████████| 45.0MB 5.8kB/s
......@@ -111,7 +111,7 @@ Successfully installed scipy-0.19.1
Python 3.0 (a.k.a. "Python 3000" or "Py3k") is a new version of the language that is incompatible with the 2.x line of releases. The language is mostly the same, but many details, especially how built-in objects like dictionaries and strings work, have changed considerably, and a lot of deprecated features have finally been removed. Also, the standard library has been reorganized in a few prominent places.
```console
~]$ ml av python/3
$ ml av python/3
---------------------- /apps/modules/lang ----------------------
Python/3.4.3-intel-2015b Python/3.5.1-intel-2017.00 Python/3.5.2-foss-2016a Python/3.5.2 Python/3.6.2-base (D)
......@@ -127,17 +127,17 @@ Python 3.0 (a.k.a. "Python 3000" or "Py3k") is a new version of the language tha
### Used Module Python/3.X
```console
~]$ python --version
$ python --version
Python 2.6.6
~]$ ml Python/3.6.2-base
~]$ python --version
$ ml Python/3.6.2-base
$ python --version
Python 3.6.2
```
### Packages in Python/3.X
```console
~]$ pip3 list
$ pip3 list
nose (1.3.7)
pip (8.0.2)
setuptools (20.1.1)
......@@ -146,10 +146,10 @@ setuptools (20.1.1)
### How to Install New Package to Python/3.X
```console
~]$ ml Python/3.6.2-base
~]$ python --version
$ ml Python/3.6.2-base
$ python --version
Python 3.6.2
~]$ pip3 install pandas --user
$ pip3 install pandas --user
Collecting pandas
Downloading pandas-0.20.3.tar.gz (10.4MB)
100% |████████████████████████████████| 10.4MB 42kB/s
......@@ -176,7 +176,7 @@ Successfully installed numpy-1.13.1 pandas-0.20.3 python-dateutil-2.6.1 pytz-201
### How to Update Package in Python/3.X?
```console
~]$ pip3 install scipy --upgrade --user
$ pip3 install scipy --upgrade --user
Collecting scipy
Downloading scipy-0.19.1-cp27-cp27mu-manylinux1_x86_64.whl (45.0MB)
100% |████████████████████████████████| 45.0MB 5.8kB/s
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment