Commit 6114e1e2 authored by Michael Krause's avatar Michael Krause 🎉
Browse files

python: move a block

parent b6788c59
Pipeline #6729 passed with stages
in 34 seconds
......@@ -144,6 +144,14 @@ For convenience reasons we also installed a module called `virtualenvwrapper`_,
(project) $ deactivate
$
Note how :file:`virtualenv` is also managing your shell prompt, so you always
know which Python environment you are currently running. All your virtual
environments created this way reside in your home directory under
:file:`~/.virtualenvs/`. In theory you could just run the virtual python
interpreter that is installed in :file:`~/.virtualenvs/<env_name>/bin/python`
directly. It is much more convenient to use the wrapper functions though.
**Upgrade a virtual environment**
If you intend to upgrade the python version in a virtualenv from 3.X to 3.Y you
......@@ -173,14 +181,6 @@ R major version upgrades. The process looks something like this:
diff env.txt <(pip freeze) # should output nothing or the difference of the old and new env
Note how :file:`virtualenv` is also managing your shell prompt, so you always
know which Python environment you are currently running. All your virtual
environments created this way reside in your home directory under
:file:`~/.virtualenvs/`. In theory you could just run the virtual python
interpreter that is installed in :file:`~/.virtualenvs/<env_name>/bin/python`
directly. It is much more convenient to use the wrapper functions though.
.. important::
To use the virtualenvwrapper convenience functions (workon etc) in a torque/SLURM
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment