[Bug 2065422] Re: Misleading error creating python virtual environment, says need to install python3.11-venv

Hans Joachim Desserud 2065422 at bugs.launchpad.net
Mon May 20 17:11:11 UTC 2024


Hm... might be due to it being an upgrade with some packages or config lingering. That explains why I didn't see it because I tested on a clean install as well. Could you please check
$ ls -la `command -v python3`
lrwxrwxrwx 1 root root 10 Apr 12 15:29 /usr/bin/python3 -> python3.12

whether it is pointing to python3.11 somehow?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/2065422

Title:
  Misleading error creating python virtual environment, says need to
  install python3.11-venv

Status in python3-defaults package in Ubuntu:
  Incomplete

Bug description:
  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 that package does
  not exist in 24.04 and what I need to install is python3-venv instead.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/2065422/+subscriptions




More information about the foundations-bugs mailing list