Ceci est une ancienne révision du document !
Miniconda within Singularity
Motivation
Because lumière cluster is based on an old operating system (Centos 6.10), GLIBC errors may occur when installing or using conda packages.
The idea is to use a more recent version of GLIBC embedded in a singularity container.
advantage: access to the most recent version of Python and the majority of recent packages.
disadvantage: lack of conda activate and deactivate options.It is therefore impossible to use conda activate.
How to use Singularity ?
We have created a wrapper around conda called conda_sing.
This new command will replace the classical conda command.
First load the dedicated environment :
$ module load miniconda/singularity
Create new environment
$ conda_sing create -n myEnv
Replace'' myEnv'' by your environment name
Install new packages in the environment
To install package inside environment:
$ conda_sing install -n myEnv package1 package2
Run program in the environment
To run program using Singularity :
$ conda_sing run -n myEnv python myProgram.py