Skip to content

Instantly share code, notes, and snippets.

@chadhs
Created June 20, 2014 03:09
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 chadhs/1cdae6807a4e5b5e031a to your computer and use it in GitHub Desktop.
Save chadhs/1cdae6807a4e5b5e031a to your computer and use it in GitHub Desktop.
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
Copy link
Author

chadhs commented Jun 20, 2014

FYI — This would live in your .bashrc

@chadhs
Copy link
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