Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 21ec7b6

Browse files
authored
Merge pull request #56 from DiamondLightSource/garryod-deactivate-other-venv
Add note on deactivating other virtual environment
2 parents 650d394 + 9f89ff6 commit 21ec7b6

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/user/tutorials/installation.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ installation will not interfere with any existing Python software::
1919
$ python3 -m venv /path/to/venv
2020
$ source /path/to/venv/bin/activate
2121

22+
.. note::
23+
24+
You may wish to deactivate any existing virual environments before sourcing the new
25+
environment. Deactivation can be performed by executing:
26+
27+
- :code:`conda deactivate` for conda
28+
- :code:`deactivate` for venv or virtualenv
29+
- :code:`exit` for pipenv
30+
2231

2332
Installing the library
2433
----------------------

docs/user/tutorials/new.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ pip to install packages in a virtual environment::
2424
source .venv/bin/activate
2525
pip install -e .[dev]
2626

27+
.. note::
28+
29+
You may wish to deactivate any existing virual environments before sourcing the new
30+
environment. Deactivation can be performed by executing:
31+
32+
- :code:`conda deactivate` for conda
33+
- :code:`deactivate` for venv or virtualenv
34+
- :code:`exit` for pipenv
35+
2736
You can then run any entry points declared in setup.cfg e.g.::
2837

2938
python3-pip-skeleton --version

0 commit comments

Comments
 (0)