PYTHONHOME bash var breaks virtualenv
Bug #290844 reported by
David Gardner
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Virtualenv |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
At work we have PYTHONHOME set in our .bashrc files. This caused virtualenv to report an error when doing:
virtualenv dev
New python executable in dev/bin/python
ERROR: The executable dev/bin/python is not functioning
ERROR: It thinks sys.prefix is '/usr' (should be '/users/
ERROR: virtualenv is not compatible with this system or executable
-------
As a workaround I added the following to my activate script:
_OLD_VIRTUAL_
unset PYTHONHOME
and in the deactivate() function:
if [ -n "$_OLD_
export PYTHONHOME
unset _OLD_VIRTUAL_
fi
Changed in virtualenv: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I've added a warning about $PYTHONHOME