mirror of
https://github.com/python/cpython.git
synced 2026-06-27 19:36:07 +00:00
[3.15] gh-136880: Add warning about PYTHONPATH (GH-151098) (GH-151299)
(cherry picked from commit 84630e2cb9)
This commit is contained in:
parent
e8d914fd49
commit
f3316ca675
1 changed files with 5 additions and 0 deletions
|
|
@ -88,6 +88,11 @@ For example:
|
|||
'~/envs/tutorial-env/lib/python3.5/site-packages']
|
||||
>>>
|
||||
|
||||
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.
|
||||
|
||||
To deactivate a virtual environment, type::
|
||||
|
||||
deactivate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue