Skip to content
Snippets Groups Projects
Commit adc840b7 authored by Lukáš Krupčík's avatar Lukáš Krupčík
Browse files

Update docs.it4i/software/lang/conda.md

parent bf939780
No related branches found
No related tags found
1 merge request!338software
Pipeline #22320 failed
...@@ -5,14 +5,11 @@ Conda is an open source package management system and environment management sys ...@@ -5,14 +5,11 @@ Conda is an open source package management system and environment management sys
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 completely separate environment to run that different version of Python, while continuing to run your usual version of Python in your normal environment. 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 completely 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. 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. Default Python is 2.7 or 3.6, depending on which installer you used: Anaconda supports Python 3.X. Default Python is 3.8, 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 ## Conda on the IT4Innovations Clusters
On the clusters, we have the Anaconda2 and Anaconda3 software installed. How to use these modules is shown below. On the clusters, we have the Anaconda3 software installed. How to use these modules is shown below.
!!! note !!! note
Use the `ml av conda` command to get up-to-date versions of the modules. Use the `ml av conda` command to get up-to-date versions of the modules.
...@@ -21,106 +18,52 @@ On the clusters, we have the Anaconda2 and Anaconda3 software installed. How to ...@@ -21,106 +18,52 @@ On the clusters, we have the Anaconda2 and Anaconda3 software installed. How to
$ ml av conda $ ml av conda
------------- /apps/modules/lang --------------------------------- ------------- /apps/modules/lang ---------------------------------
Anaconda2/4.4.0 Anaconda3/4.4.0 Anaconda3/2021.05
```
## Anaconda2
Default Python is 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 ## Anaconda3
Default Python is 3.6. Default Python is 3.8.8.
### First Usage Module Anaconda3 ### First Usage Module Anaconda3
```console ```console
$ ml Anaconda3/4.4.0 $ ml Anaconda3/2021.05
$ python --version $ python --version
Python 3.6.1 :: Anaconda 4.4.0 (64-bit) Python 3.8.8
$ conda install numpy $ conda install numpy
Fetching package metadata ......... Fetching package metadata .........
Solving package specifications: . Solving package specifications: .
Package plan for installation in environment /apps/all/Anaconda3/4.4.0: Package plan for installation in environment /apps/all/Anaconda3/2021.05:
The following packages will be UPDATED: The following packages will be UPDATED:
anaconda: 4.4.0-np112py36_0 --> custom-py36_0 conda 4.10.1-py38h06a4308_1 --> 4.10.3-py38h06a4308_0
... ...
... ...
... ...
CondaIOError: Missing write permissions in: /apps/all/Anaconda3/4.4.0 CondaIOError: Missing write permissions in: /apps/all/Anaconda3/2021.05
# #
# You don't appear to have the necessary permissions to install packages # You don't appear to have the necessary permissions to install packages
# into the install area '/apps/all/Anaconda3/4.4.0'. # into the install area '/apps/all/Anaconda3/2021.05'.
# However you can clone this environment into your home directory and # However you can clone this environment into your home directory and
# then make changes to it. # then make changes to it.
# This may be done using the command: # This may be done using the command:
# #
# $ conda create -n my_root --clone="/apps/all/Anaconda3/4.4.0" # $ conda create -n my_root --clone="/apps/all/Anaconda3/2021.05"
$ $
$ conda create -n anaconda3 --clone="/apps/all/Anaconda3/4.4.0" $ conda create -n anaconda3 --clone="/apps/all/Anaconda3/2021.05"
Source: /apps/all/Anaconda3/4.4.0 Source: /apps/all/Anaconda3/2021.05
Destination: /home/svi47/.conda/envs/anaconda3 Destination: /home/user/.conda/envs/anaconda3
The following packages cannot be cloned out of the root environment: The following packages cannot be cloned out of the root environment:
- conda-4.3.21-py36_0 - defaults/linux-64::conda-env-2.6.0-1
- conda-env-2.6.0-0 - defaults/linux-64::conda-4.10.3-py38h06a4308_0
Packages: 200 - defaults/noarch::conda-token-0.3.0-pyhd3eb1b0_0
Files: 6 - defaults/linux-64::anaconda-navigator-2.0.3-py38_0
- defaults/linux-64::conda-build-3.21.4-py38h06a4308_0
Packages: 339
Files: 50986
... ...
... ...
... ...
...@@ -138,7 +81,7 @@ $ source activate anaconda3 ...@@ -138,7 +81,7 @@ $ source activate anaconda3
### Usage Module Anaconda3 ### Usage Module Anaconda3
```console ```console
$ ml Anaconda3/4.4.0 $ ml Anaconda3/2021.05
$ source activate anaconda3 $ source activate anaconda3
(anaconda3) ~]$ (anaconda3) ~]$
``` ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment