Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homebrew no longer hides macOS system python, so virtualenvwrapper breaks #1

Open
pedmiston opened this issue Jul 21, 2017 · 0 comments

Comments

@pedmiston
Copy link
Member

I don't use the macOS system python for anything. Instead, I install versions of python2 and python3 with Homebrew. It used to be that brew install python hid the system python by default or maybe with an --overwrite-system-python flag. Now they keep them separate, so if you type $ python you'll get the macOS system python, and if you want the Homebrew-installed pythons you have to type $ python2 or $ python3.

This is an issue for managing virtualenv when using virtualenvwrapper because the virtualenvwrapper script expects to use the python first on the path. Luckily you can change this by defining an additional environment variable telling virtualenvwrapper which python interpreter to use.

# in .bash_profile
# ...
export WORKON_HOME=$HOME/.venvs
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python2
source /usr/local/bin/virtualenvwrapper.sh

I'm opening this issue so I remember to add this information into the materials for this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant