Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimiro1/a8d2761316d2714e5820 to your computer and use it in GitHub Desktop.
Save dimiro1/a8d2761316d2714e5820 to your computer and use it in GitHub Desktop.

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment