pyvenv-3.3 venvdir
venvdir/bin/python -c 'import sys; print(sys.path)'
# This should print the venvdir in sys.path.
# But in buggy Ubuntu/Debian, it doesn't.
ln -s site-packages venvdir/lib/python3.3/dist-packages
- https://bugs.launchpad.net/ubuntu/+source/python3.3/+bug/1093193
- https://bugs.launchpad.net/ubuntu/+source/python3.3/+bug/1298831
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695758#20
pyvenv-3.4 venvdir
# Returns an error regarding ensurepip command
pyvenv-3.4 --without-pip venvdir
source venvdir/bin/activate
curl https://bootstrap.pypa.io/get-pip.py | python
deactivate
source venvdir/bin/activate
- https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1290847
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732703
- http://pip.readthedocs.org/en/latest/installing.html
pyvenv-3.4
The program 'pyvenv-3.4' is currently not installed. You can install it by typing:
sudo apt-get install python3.4
Use:
python3 -m venv
Instead of:
pyvenv-3.4
Works fine!
Doesn't work out of the box in 15.04.
python3.4 -m venv foo
fails with a cryptic error message, andpyvenv
/pyvenv-3.4
are not valid commands unless you installpython3.4-venv
, in which case an old version of pip is installed into the venv.