4 ms·
AFAIK -mvenv is still kaput in Ubuntu. I just this instead: sudo apt-get install python-virtualenv python3 virtualenv -p/usr/bin/python3 <venv> Yes, i
by dschep 12y ago
AFAIK -mvenv is still kaput in Ubuntu. I just this instead:
sudo apt-get install python-virtualenv python3
virtualenv -p/usr/bin/python3 <venv>
Yes, it'd be way cooler if -mvenv wasn't crippled in Ubuntu, but this still works fine.
- arenaninja 12y agoYea I was doing this until I also ran into a horrible mess later on due to the underlying issue that resulted in a catch 22 (something like pip is broken because venv is broken because pip is broken...). Unfortunately I didn't see [this tweet](https://twitter.com/danilobellini/status/461653494295179264 https://twitter.com/danilobellini/status/461653494295179264) at that time, or things might have turned out differently
- mdf 12y agoI know this is a bit of a dirty trick, but so far it has worked without problems for me at least: The issue seems to rise from a missing ensurepip module. I fixed this by just downloading the Python 3.4 sources, unpacking them and copying the unpacked lib/ensurepip/ to /usr/lib/python3.4/ after which python3 -m venv seems to work fine.