Skip to content

📝 docs(faq): document Debian python3-venv limitation#3789

Merged
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:doc/3195-debian-venv-limitation
Feb 20, 2026
Merged

📝 docs(faq): document Debian python3-venv limitation#3789
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:doc/3195-debian-venv-limitation

Conversation

@gaborbernat
Copy link
Copy Markdown
Member

On Debian and Ubuntu the system Python splits venv and ensurepip into a separate python3-venv package. tox itself is unaffected — it uses virtualenv which bundles its own bootstrap — but tools that tox runs as commands inside environments (most commonly pyproject-build) may use stdlib venv internally 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 using tox-uv to bypass stdlib venv entirely.

Closes #3195

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.
@gaborbernat gaborbernat force-pushed the doc/3195-debian-venv-limitation branch from 3dd6424 to 2b32645 Compare February 20, 2026 04:12
@gaborbernat gaborbernat enabled auto-merge (squash) February 20, 2026 04:43
@gaborbernat gaborbernat merged commit 5ee23bf into tox-dev:main Feb 20, 2026
51 of 78 checks passed
@gaborbernat gaborbernat deleted the doc/3195-debian-venv-limitation branch February 20, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testing tox with tox py requires system-installed venv package

1 participant