Skip to content

Commit 7ec6a51

Browse files
authored
Wrap long line in the PYTHONPATH note in venv.rst per review comments
Reformat note about PYTHONPATH and virtual environments for clarity.
1 parent 8cffed1 commit 7ec6a51

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/tutorial/venv.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ For example:
8888
'~/envs/tutorial-env/lib/python3.5/site-packages']
8989
>>>
9090
91-
Note that the activated virtual environment does not alter the ``PYTHONPATH`` variable in any way. This may lead to unexpected results if the path includes references to code which is incompatible with the Python version the virtual environment is using. The best practice is to ``unset PYTHONPATH`` in bash or the equivalent for the shell you are using.
91+
Note that the activated virtual environment does not alter the ``PYTHONPATH`` variable in any way.
92+
This may lead to unexpected results if the path includes references to code which is incompatible with
93+
the Python version the virtual environment is using. The best practice is to ``unset PYTHONPATH``
94+
in bash or the equivalent for the shell you are using.
9295

9396
To deactivate a virtual environment, type::
9497

0 commit comments

Comments
 (0)