Public bug reported: Steps to reproduce:
$ sudo apt install python3.10-full $ mkvirtualenv -p /usr/bin/python3.10 test3.10 $ pip list Traceback (most recent call last): File "/home/alain/.virtualenvs/test3.10/bin/pip", line 5, in <module> from pip._internal.cli.main import main ModuleNotFoundError: No module named 'pip' Expected behavior: pip should be found directly in the new virtual environment. With a Python 3.10 installed from source, it does. Has been described by others than me: https://stackoverflow.com/questions/69810545/ubuntu-21-04-virtualenv- and-its-configuration-of-python. ProblemType: Bug DistroRelease: Ubuntu 21.04 Package: python3.10 3.10.0~b1-3~21.04 ProcVersionSignature: Ubuntu 5.11.0-41.45-generic 5.11.22 Uname: Linux 5.11.0-41-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu65.4 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: XFCE Date: Sat Dec 25 14:29:43 2021 InstallationDate: Installed on 2020-04-11 (622 days ago) InstallationMedia: Xubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200411) SourcePackage: python3.10 UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: python3.10 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug hirsute ** Description changed: Steps to reproduce: $ sudo apt install python3.10-full $ mkvirtualenv -p /usr/bin/python3.10 test3.10 $ pip list Traceback (most recent call last): - File "/home/alain/.virtualenvs/test3.10/bin/pip", line 5, in <module> - from pip._internal.cli.main import main + File "/home/alain/.virtualenvs/test3.10/bin/pip", line 5, in <module> + from pip._internal.cli.main import main ModuleNotFoundError: No module named 'pip' Expected behavior: pip should be found directly in the new virtual - environment. + environment. With a Python 3.10 installed from source, it does. Has been described by others than me: https://stackoverflow.com/questions/69810545/ubuntu-21-04-virtualenv- and-its-configuration-of-python. ProblemType: Bug DistroRelease: Ubuntu 21.04 Package: python3.10 3.10.0~b1-3~21.04 ProcVersionSignature: Ubuntu 5.11.0-41.45-generic 5.11.22 Uname: Linux 5.11.0-41-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu65.4 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: XFCE Date: Sat Dec 25 14:29:43 2021 InstallationDate: Installed on 2020-04-11 (622 days ago) InstallationMedia: Xubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200411) SourcePackage: python3.10 UpgradeStatus: No upgrade log present (probably fresh install) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1955742 Title: `ModuleNotFoundError: No module named 'pip'` for python3.10 virtual environment on Ubuntu 21.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python3.10/+bug/1955742/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
