pyvenv-3.3 (Ubuntu 13.10, also Debian)
Symptoms
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.
Solution
ln -s site-packages venvdir/lib/python3.3/dist-packages
More info
- 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 (Ubuntu 14.04, also Debian)
Symptoms
pyvenv-3.4 venvdir
# Returns an error regarding ensurepip command
Solution
pyvenv-3.4 --without-pip venvdir
source venvdir/bin/activate
curl https://bootstrap.pypa.io/get-pip.py | python
deactivate
source venvdir/bin/activate
More info
- 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 (Ubuntu 14.04)
Symptoms
pyvenv-3.4
The program 'pyvenv-3.4' is currently not installed. You can install it by typing:
sudo apt-get install python3.4
Solution
Use:
python3 -m venv
Instead of:
pyvenv-3.4
More info
pyvenv-3.4 (Ubuntu 15.04)
Works fine!
This comment has been minimized.
Crunchbang is quite buggy. However, by using this command, it works well.
virtualenv --python=python3.4 venv