Anaconda
Description
Anaconda is an open source distribution of Python and R which tries to simplify the management and deployment of modules.
Installation
The Python distributions installed on Compute Canada servers are compiled from the source available at the python.org site. Users are however free to install Anaconda in their own directory. The following instructions should simplify this job and thus avoid compatibility errors.
In order to limit the installation time and the amount of storage needed, we encourage the installation of Miniconda instead of Anaconda. Miniconda includes the conda package manager and Python. You can then use the conda command to install the software you need.
Home directory (user-based installation)
By default the installation is performed in your home directory to which only you have access. If you want to share your installation with other members of your group, use the instructions in the following section.
To install Miniconda with Python 2, execute the following command:
[name@server ~]$ eb Miniconda2-4.3.27.eb
For Miniconda with Python 3, execute the following command:
[name@server ~]$ eb Miniconda3-4.3.27.eb
Be patient, the installation of Miniconda can take several minutes.
Project directory (group-based installation)
To install Anaconda with Python 2, use the following commands, replacing the field <project>
by your project identifier:
[name@server ~]$ eb --sticky-bit --set-gid-bit --prefix=$(readlink ~/projects/<project>) Miniconda2-4.3.27.eb
For Anaconda with Python 3, execute the following command, replacing the field <project>
by your group identifier:
[name@server ~]$ eb --sticky-bit --set-gid-bit --prefix=$(readlink ~/projects/<project>) Miniconda3-4.3.27.eb
Be patient, the installation of Miniconda can take several minutes.
The installation of Miniconda automatically creates a module file that you can load with the command of the same name. So that the module command finds this file you need to tell it where to look by means of the following command, replacing the field <project>
by your project identifier:
[name@server ~]$ module use ~/projects/<project>/modules/*/Core
Si vous souhaitez que le module soit disponible chaque fois que vous vous connectez, vous pouvez ajouter la commande précédente à la fin de votre fichier .bashrc
.
Autre version
Pour l'installation d'une autre version d'Anaconda, nous vous recommandons de contacter l'équipe de support par courriel à support@calculcanada.ca .
Utilisation
Charger le module Miniconda 2
[name@server ~]$ module load miniconda2
ou Miniconda 3
[name@server ~]$ module load miniconda3
conda
Vous pouvez installer des modules Python dans votre installation de Miniconda en utilisant la commande conda directement. Par exemple, pour installer le module theano
[name@server ~]$ conda install theano