Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
a77e4c57
Commit
a77e4c57
authored
2 years ago
by
Elias Werner
Browse files
Options
Downloads
Patches
Plain Diff
add hints for EB modules in conda envs
parent
cc057eaf
No related branches found
No related tags found
2 merge requests
!563
Automated merge from preview to main
,
!543
add example to virtualenv and pip, fix example conda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/docs/software/python_virtual_environments.md
+12
-2
12 additions, 2 deletions
...u-dresden.de/docs/software/python_virtual_environments.md
with
12 additions
and
2 deletions
doc.zih.tu-dresden.de/docs/software/python_virtual_environments.md
+
12
−
2
View file @
a77e4c57
...
@@ -165,6 +165,15 @@ can deactivate the conda environment as follows:
...
@@ -165,6 +165,15 @@ can deactivate the conda environment as follows:
(conda-env) marie@compute$
conda deactivate
#Leave the virtual environment
(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
??? example
This is an example on partition Alpha. The example creates a conda virtual environment, and
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:
...
@@ -187,9 +196,10 @@ can deactivate the conda environment as follows:
[...]
[...]
Preparing transaction: done
Preparing transaction: done
Verifying 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__)"
(my-torch-env) marie@alpha$ python -c "import torchvision; print(torchvision.__version__)"
0.1
0
.0
+cu102
0.1
2
.0
(my-torch-env) marie@alpha$ deactivate
(my-torch-env) marie@alpha$
conda
deactivate
```
```
### Persistence of Conda Virtual Environment
### Persistence of Conda Virtual Environment
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment