venv issues
Nicholas Cole
nicholas.cole at gmail.com
Tue Nov 3 05:32:33 EST 2015
I'm using python3.5 (installed from binaries) on the latest OS X.
I have a curious issue with virtual environments on this machine (but
not on my other machine).
$ python3.5 -m venv testenv
$ source testenv/bin/activate
(testenv)$ python -m pip
/private/tmp/testenv/bin/python: No module named pip
$
Logging in as a different user and creating a venv works perfectly, so
it's clearly a config issue somewhere, but I've tried removing
~/.bashrc and ~/.bash_profile and that doesn't help.
The sys.path for that venv is: ['',
'/Library/Frameworks/Python.framework/Versions/3.5/lib/python35.zip',
'/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5',
'/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/plat-darwin',
'/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/lib-dynload',
'/private/tmp/testenv/lib/python3.5/site-packages']
I'm sure I'm overlooking something obvious, but can anyone suggest what?
Nicholas
More information about the Python-list
mailing list