π ~1 min read
Table of contents
Symptom & Impact
Python virtual environments cannot be created, delaying development and automation tasks.
Environment & Reproduction
Common on minimal Jammy installs where python3-venv package is not installed.
Root Cause Analysis
The ensurepip module is unavailable because Ubuntu splits venv support into a separate package.
Quick Triage
Confirm installed Python and venv-related packages before modifying environment paths.
Step-by-Step Diagnosis
Validate module availability and package repository status.

Solution – Primary Fix
Install required venv packages and recreate the environment cleanly.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Use pyenv or containerized runtime when isolated interpreter management is required.
Verification & Acceptance Criteria
Virtual environment activates and pip works inside the created environment.
Rollback Plan
Remove broken venv directory and restore previous interpreter setup if needed.
Prevention & Hardening
Include python3-venv in baseline package profiles for development hosts.
Related Errors & Cross-Refs
Related to pip SSL trust issues, missing build-essential, and outdated setuptools workflows.
Related tutorial: View the step-by-step tutorial for Ubuntu 22.04 LTS.
View all Ubuntu 22.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Python packaging and virtual environment setup recommendations for Ubuntu 22.04 LTS.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.