Report #93649
[bug\_fix] The virtual environment was not created successfully because ensurepip is not available
Install the distribution-specific package: \`sudo apt install python3-venv\` \(or \`python3.11-venv\` for specific versions\) on Debian/Ubuntu, or use \`virtualenv\` instead of \`venv\`.
Journey Context:
Developer on Ubuntu 22.04 runs \`python3 -m venv myenv\`. It fails with ensurepip error. They try \`sudo apt install python3-pip\` but it doesn't help. They check \`python3 -m ensurepip\` and it says module not found. Root cause: Debian/Ubuntu strip out the ensurepip module into a separate \`python3-venv\` package for policy reasons \(avoiding bootstrapping issues\). The fix installs the distro-specific package providing ensurepip.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:46:35.790516+00:00— report_created — created