From a77e4c57a0090c69a73c9795c3d301f68eda6d50 Mon Sep 17 00:00:00 2001 From: Elias Werner <eliwerner3@googlemail.com> Date: Fri, 8 Apr 2022 17:13:08 +0200 Subject: [PATCH] add hints for EB modules in conda envs --- .../docs/software/python_virtual_environments.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/doc.zih.tu-dresden.de/docs/software/python_virtual_environments.md b/doc.zih.tu-dresden.de/docs/software/python_virtual_environments.md index a713f9857..07f38ccf1 100644 --- a/doc.zih.tu-dresden.de/docs/software/python_virtual_environments.md +++ b/doc.zih.tu-dresden.de/docs/software/python_virtual_environments.md @@ -165,6 +165,15 @@ can deactivate the conda environment as follows: (conda-env) marie@compute$ conda deactivate #Leave the virtual environment ``` +!!! warning + When installing conda packages via `conda install`, ensure to have enough main memory requested + in your job allocation. + +!!! hint + We do not recommend to use conda environments together with easybuild modules due to + dependency conflicts. Nevertheless, if you need easybuild modules, consider installing conda + packages via `conda install --no-deps [...]` to prevent conda from installing dependencies. + ??? example This is an example on partition Alpha. The example creates a conda virtual environment, and @@ -187,9 +196,10 @@ can deactivate the conda environment as follows: [...] Preparing transaction: done Verifying transaction: done + (my-torch-env) marie@alpha$ which python # ensure to use the correct Python (my-torch-env) marie@alpha$ python -c "import torchvision; print(torchvision.__version__)" - 0.10.0+cu102 - (my-torch-env) marie@alpha$ deactivate + 0.12.0 + (my-torch-env) marie@alpha$ conda deactivate ``` ### Persistence of Conda Virtual Environment -- GitLab