[Bug 1290847] Re: pyvenv fails due to mising ensurepip module
garyo
garyo at oberbrunner.com
Tue Oct 30 17:18:10 UTC 2018
I'm sorry to post to this ancient bug, but I just did a fresh install of
Ubuntu 18.04, and I just want to create a virtual env with python 3.7,
including pip (or some way to install modules). Doing this does not
work:
% sudo apt install python3.7 python3.7-venv
% python3.7 -m venv py37-venv
It gives the error "The virtual environment was not created successfully
because ensurepip is not available".
Doing it with --without-pip works, but then there is no way to install
modules in the virtualenv. (python -mpip in the virtualenv correctly
says "No module named pip").
So what is the recommended way to install python 3.7 on Ubuntu 18.04 and
create a "normal" virtual env?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.4 in Ubuntu.
https://bugs.launchpad.net/bugs/1290847
Title:
pyvenv fails due to mising ensurepip module
Status in python3-defaults package in Ubuntu:
Fix Released
Status in python3.4 package in Ubuntu:
Fix Released
Status in python3.4 package in Debian:
Fix Released
Bug description:
Hello,
I noticed the following
# fails
python3.4 -m venv --clear python-venv
Error: Command '['.../external/python-venv/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1
# works, but no pip
python3.4 -m venv --clear --without-pip python-venv
Thank you
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1290847/+subscriptions
More information about the foundations-bugs
mailing list