Skip to content

gh-136880: Add warning about PYTHONPATH#151098

Open
glennglazer wants to merge 2 commits into
python:mainfrom
glennglazer:Doc-Venv-136880
Open

gh-136880: Add warning about PYTHONPATH#151098
glennglazer wants to merge 2 commits into
python:mainfrom
glennglazer:Doc-Venv-136880

Conversation

@glennglazer
Copy link
Copy Markdown

@glennglazer glennglazer commented Jun 8, 2026

Warn people that PYTHONPATH is inherited in the venv, this can produce unexpected results such as the wrong library version (if system is different than venv requirements) or even completely incompatible references.

See conversation here:

python#136880

for the request for this documentation update.
@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented Jun 8, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

replace with simple highlighting
@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33045260 | 📁 Comparing 431f247 against main (5c13217)

  🔍 Preview build  

1 file changed
± tutorial/venv.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant