Issue25151
Created on 2015-09-17 13:55 by lac, last changed 2022-04-11 14:58 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg250887 - (view) | Author: Laura Creighton (lac) | Date: 2015-09-17 13:55 | |
I am reporting this here so that the next person who runs into this and looks into the bug tracker will find out what to do. You cannot create a venv with Python3.3, 3.4, 3.5. on debian (and likely on many debian-derived distros). Instead you get Error: Command '['<directory>/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1 Debian knows all about this, but they don't want to make changes. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732703 Instead, if you want venv to work you will need to install the debian packages python3-venv (for 3.4) and python3.5-venv for 3.5. Can somebody close this issue now, as this is clearly a debian issue and not a Python bug. I am just reporting it here so that somebody else who has the problem can find out what to do. |
|||
| msg250924 - (view) | Author: Laura Creighton (lac) | Date: 2015-09-17 23:05 | |
And now, I want to open this again. I'd like to change python -m venv (and pyenv) to say something more useful than Command '['<directory>/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1 if it cannot find the ensurepip module. |
|||
| msg267309 - (view) | Author: Matthias Klose (doko) * ![]() |
Date: 2016-06-04 19:57 | |
The current Debian packages show this error message:
$ python3 -m venv /tmp/foobar
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-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/tmp/foobar/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
|
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:21 | admin | set | github: 69338 |
| 2016-06-04 19:57:54 | doko | set | status: open -> closed resolution: fixed |
| 2016-06-04 19:57:11 | doko | set | nosy:
+ doko messages: + msg267309 |
| 2016-02-07 05:15:39 | ned.deily | set | nosy:
+ vinay.sajip stage: resolved -> resolution: third party -> (no value) versions: - Python 3.3, Python 3.4 |
| 2015-09-17 23:05:36 | lac | set | status: closed -> open messages: + msg250924 |
| 2015-09-17 14:11:31 | zach.ware | set | status: open -> closed resolution: third party stage: resolved |
| 2015-09-17 13:55:40 | lac | create | |
