Skip to content

Commit 8cffed1

Browse files
authored
Update venv.rst to clarify PYTHONPATH behavior per review comments
Clarified that the activated virtual environment does not alter the PYTHONPATH variable.
1 parent 49583f6 commit 8cffed1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/tutorial/venv.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ For example:
8888
'~/envs/tutorial-env/lib/python3.5/site-packages']
8989
>>>
9090
91-
Note that the activated virtual environment manages the ``PYTHONHOME`` environment variable to find the specific version of Python that is requested. It 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. 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.
9292

9393
To deactivate a virtual environment, type::
9494

0 commit comments

Comments
 (0)