by dschep · 11y ago · 0 comments
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.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.