Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Conda (Anaconda)
Conda is an open source package management system and environment management system that runs on Windows, macOS and Linux. Conda quickly installs, runs and updates packages and their dependencies. Conda easily creates, saves, loads and switches between environments on your local computer. It was created for Python programs, but it can package and distribute software for any language.
Conda as a package manager helps you find and install packages. If you need a package that requires a different version of Python, you do not need to switch to a different environment manager, because conda is also an environment manager. With just a few commands, you can set up a totally separate environment to run that different version of Python, while continuing to run your usual version of Python in your normal environment.
Conda treats Python the same as any other package, so it is easy to manage and update multiple installations.
Anaconda supports Python 2.7, 3.4, 3.5 and 3.6. The default is Python 2.7 or 3.6, depending on which installer you used:
* For the installers “Anaconda” and “Miniconda,” the default is 2.7.
* For the installers “Anaconda3” or “Miniconda3,” the default is 3.6.
## Conda on the IT4Innovations Clusters
On the clusters we have the Anaconda2 and Anaconda3 software installed. How to use these modules is shown below.
!!! note
Use the command `ml av conda` to get up-to-date versions of the modules.
```console
~]$ ml av conda
------------- /apps/modules/lang ---------------------------------
Anaconda2/4.4.0 Anaconda3/4.4.0
```
## Anaconda2
The default is Python 2.7
### First Usage Module Anaconda2
```console
~]$ ml Anaconda2/4.4.0
~]$ python --version
Python 2.7.13 :: Anaconda 4.4.0 (64-bit)
~]$ conda install numpy
Fetching package metadata .........
Solving package specifications: .
Package plan for installation in environment /apps/all/Anaconda2/4.4.0:
The following packages will be UPDATED:
anaconda: 4.4.0-np112py27_0 --> custom-py27_0
...
...
...
CondaIOError: Missing write permissions in: /apps/all/Anaconda2/4.4.0
#
# You don't appear to have the necessary permissions to install packages
# into the install area '/apps/all/Anaconda2/4.4.0'.
# However you can clone this environment into your home directory and
# then make changes to it.
# 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"
Source: /apps/all/Anaconda2/4.4.0
Destination: /home/svi47/.conda/envs/anaconda2
The following packages cannot be cloned out of the root environment:
- conda-4.3.21-py27_0
- conda-env-2.6.0-0
Packages: 213
...
...
...
#
# To activate this environment, use:
# > source activate anaconda2
#
# To deactivate this en
```
### Usage Module Anaconda2
```console
~]$ ml Anaconda2/4.4.0
~]$ source activate anaconda2
(anaconda2) ~]$
```
## Anaconda3
The default is Python 3.6
### First usage Module Anaconda3
```console
~]$ ml Anaconda3/4.4.0
~]$ python --version
Python 3.6.1 :: Anaconda 4.4.0 (64-bit)
~]$ conda install numpy
Fetching package metadata .........
Solving package specifications: .
Package plan for installation in environment /apps/all/Anaconda3/4.4.0:
The following packages will be UPDATED:
anaconda: 4.4.0-np112py36_0 --> custom-py36_0
...
...
...
CondaIOError: Missing write permissions in: /apps/all/Anaconda3/4.4.0
#
# You don't appear to have the necessary permissions to install packages
# into the install area '/apps/all/Anaconda3/4.4.0'.
# However you can clone this environment into your home directory and
# then make changes to it.
# 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"
Source: /apps/all/Anaconda3/4.4.0
Destination: /home/svi47/.conda/envs/anaconda3
The following packages cannot be cloned out of the root environment:
- conda-4.3.21-py36_0
- conda-env-2.6.0-0
Packages: 200
Files: 6
...
...
...
#
# To activate this environment, use:
# > source activate anaconda3
#
# To deactivate this environment, use:
# > source deactivate anaconda3
#
~]$ source activate anaconda3
(anaconda3) ~]$
```
### Usage Module Anaconda3
```console
~]$ ml Anaconda3/4.4.0
~]$ source activate anaconda3
(anaconda3) ~]$
```