Comment 0 for bug 2065422

Revision history for this message
thewade (wade-penner) wrote :

On Ubuntu 24.04 when I try to create a virtual environment I get this error:

$ python3 -m venv pyenv
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.11-venv

You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.

I am running the python3 version included with the distro

$ python3 --version
Python 3.12.3

The error suggests I install python3.11-venv however what package does not exist in 24.04 and what I need to install is python3-venv instead.