📝 docs(faq): document Debian python3-venv limitation#3789
Merged
gaborbernat merged 1 commit intotox-dev:mainfrom Feb 20, 2026
Merged
📝 docs(faq): document Debian python3-venv limitation#3789gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat merged 1 commit intotox-dev:mainfrom
Conversation
On Debian/Ubuntu the system Python excludes venv/ensurepip, which breaks tools like pyproject-build that use stdlib venv internally. tox itself is unaffected since it uses virtualenv, but users hit confusing errors from commands running inside tox environments.
3dd6424 to
2b32645
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Debian and Ubuntu the system Python splits
venvandensurepipinto a separatepython3-venvpackage. tox itself is unaffected — it usesvirtualenvwhich bundles its own bootstrap — but tools that tox runs as commands inside environments (most commonlypyproject-build) may use stdlibvenvinternally and fail with a confusing "ensurepip is not available" error.This adds a "Known limitations" entry in the concepts documentation explaining the root cause and providing two solutions: installing
python3-venv, or usingtox-uvto bypass stdlibvenventirely.Closes #3195