Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get `mkvirtualenv` to use homebrew's installed python over system python on OS X (line 4 is the key)
## python development
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/src
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python2.7
source /usr/local/bin/virtualenvwrapper.sh
@chadhs

This comment has been minimized.

Copy link
Owner Author

chadhs commented Jun 20, 2014

FYI — This would live in your .bashrc

@chadhs

This comment has been minimized.

Copy link
Owner Author

chadhs commented Jun 21, 2014

idea

make two aliases; one for specifying 2.7 the other 3.3 depending on the project. basically running this before the command export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/pythonX.X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.