Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| anaconda [2020/05/26 17:41] – [Installed version] admin | anaconda [2024/04/30 13:56] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 9: | Ligne 9: | ||
| <code bash> | <code bash> | ||
| $ module avail lang/ | $ module avail lang/ | ||
| - | lang/ | + | lang/ |
| </ | </ | ||
| Ligne 16: | Ligne 16: | ||
| <code bash> | <code bash> | ||
| - | $ module load lang/ | + | $ module load lang/ |
| </ | </ | ||
| Ligne 28: | Ligne 28: | ||
| ===== Install new package===== | ===== Install new package===== | ||
| - | You may need to install additional package without having root access. We instead recommend building a '' | + | <note important> |
| - | - Create a conda environment <code bash>$ conda create -y --prefix $WORK/ | + | **EDIT DEC 2023**\\ |
| - | - Activate the environment you just created <code bash> | + | If you get errors ( related to '' |
| - | - Download and install the conda package in the environment <code bash> $ conda install | + | </ |
| + | |||
| + | |||
| + | <note important> | ||
| + | **EDIT 2023**\\ | ||
| + | The latest python version supported on the cluster is **3.7.4** | ||
| + | You need to request this explicitly when creating a new conda env by using this option: '' | ||
| + | </ | ||
| + | |||
| + | You may need to install additional package without having root access. | ||
| + | We instead recommend building a '' | ||
| + | But before we need to tell conda to use '' | ||
| + | <code bash>$ conda config --add pkgs_dirs $WORK/ | ||
| + | $ conda config --add envs_dirs $WORK/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | - Create a conda environment <code bash>$ conda create -y --prefix $WORK/ | ||
| + | - Activate the environment you just created <code bash> | ||
| + | - Download and install the conda package in the environment <code bash> $ conda install package</ | ||
| - Run your analysis from **within** the environment | - Run your analysis from **within** the environment | ||
| - | - Deactivating environment, | + | - Deactivating environment, |
| + | |||
| + | ==== SGE Example using anaconda environement ==== | ||
| + | |||
| + | Here is a simple SGE script that load anaconda 3.7, activate conda env called conda-env and then run a python program. | ||
| + | |||
| + | |||
| + | <file bash anaconda.sge> | ||
| + | |||
| + | # | ||
| + | |||
| + | #$ -q all.q | ||
| + | |||
| + | #$ -l h_vmem=6G ## job will cancel if memory exceed | ||
| + | |||
| + | #$ -N Test_anaconda | ||
| + | |||
| + | module load lang/ | ||
| + | |||
| + | ## load conda, activate env called conda-env and run conda program | ||
| + | |||
| + | conda activate $WORK/ | ||
| + | |||
| + | </ | ||