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
3443cd07
Commit
3443cd07
authored
2 years ago
by
Jan Frenzel
Browse files
Options
Downloads
Patches
Plain Diff
Added "marie-" in workspace names where missing.
parent
0266cd43
No related branches found
No related tags found
2 merge requests
!614
Automated merge from preview to main
,
!613
Added "marie-" in workspace names where missing.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/docs/software/python_virtual_environments.md
+8
-8
8 additions, 8 deletions
...u-dresden.de/docs/software/python_virtual_environments.md
with
8 additions
and
8 deletions
doc.zih.tu-dresden.de/docs/software/python_virtual_environments.md
+
8
−
8
View file @
3443cd07
...
...
@@ -50,11 +50,11 @@ Then create the virtual environment and activate it.
```
console
marie@compute$
ws_allocate
-F
scratch python_virtual_environment 1
Info: creating workspace.
/scratch/ws/1/python_virtual_environment
/scratch/ws/1/
marie-
python_virtual_environment
[...]
marie@compute$
virtualenv
--system-site-packages
/scratch/ws/1/python_virtual_environment/env
#Create virtual environment
marie@compute$
virtualenv
--system-site-packages
/scratch/ws/1/
marie-
python_virtual_environment/env
#Create virtual environment
[...]
marie@compute$
source
/scratch/ws/1/python_virtual_environment/env/bin/activate
#Activate virtual environment. Example output: (env) bash-4.2$
marie@compute$
source
/scratch/ws/1/
marie-
python_virtual_environment/env/bin/activate
#Activate virtual environment. Example output: (env) bash-4.2$
```
Now you can work in this isolated environment, without interfering with other
...
...
@@ -113,9 +113,9 @@ packages from the file:
```
console
marie@compute$
module load Python
#Load default Python
[...]
marie@compute$
virtualenv
--system-site-packages
/scratch/ws/1/python_virtual_environment/env_post
#Create virtual environment
marie@compute$
virtualenv
--system-site-packages
/scratch/ws/1/
marie-
python_virtual_environment/env_post
#Create virtual environment
[...]
marie@compute$
source
/scratch/ws/1/python_virtual_environment/env/bin/activate
#Activate virtual environment. Example output: (env_post) bash-4.2$
marie@compute$
source
/scratch/ws/1/
marie-
python_virtual_environment/env/bin/activate
#Activate virtual environment. Example output: (env_post) bash-4.2$
(env_post) marie@compute$
pip
install
-r
requirements.txt
#Install packages from the created requirements.txt file
```
...
...
@@ -146,7 +146,7 @@ directory for the conda virtual environment:
```
console
marie@compute$
ws_allocate
-F
scratch conda_virtual_environment 1
Info: creating workspace.
/scratch/ws/1/conda_virtual_environment
/scratch/ws/1/
marie-
conda_virtual_environment
[...]
```
...
...
@@ -155,8 +155,8 @@ environment:
```
console
marie@compute$
module load Anaconda3
#load Anaconda module
marie@compute$
conda create
--prefix
/scratch/ws/1/conda_virtual_environment/conda-env
python
=
3.6
#create virtual environment with Python version 3.6
marie@compute$
conda activate /scratch/ws/1/conda_virtual_environment/conda-env
#activate conda-env virtual environment
marie@compute$
conda create
--prefix
/scratch/ws/1/
marie-
conda_virtual_environment/conda-env
python
=
3.6
#create virtual environment with Python version 3.6
marie@compute$
conda activate /scratch/ws/1/
marie-
conda_virtual_environment/conda-env
#activate conda-env virtual environment
```
Now you can work in this isolated environment, without interfering with other
...
...
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