Skip to content

Instantly share code, notes, and snippets.

@bsodmike
Forked from munhitsu/gist:1034876
Last active December 16, 2015 18:29
Show Gist options
  • Select an option

  • Save bsodmike/5478306 to your computer and use it in GitHub Desktop.

Select an option

Save bsodmike/5478306 to your computer and use it in GitHub Desktop.
python 2.7 install on Mac OS X 10.8 Mountain Lion using brew (pip, easy_install, virtualenv, virtualenvwrapper)
brew install python --framework
easy_install pip
pip install virtualenv
pip install virtualenvwrapper
mkdir $HOME/.virtualenvs
# homebrew python 2.7
echo 'export PATH="/usr/local/share/python:$PATH"' >> ~/.zshrc
#virtualenv wrapper
echo 'export WORKON_HOME=$HOME/.virtualenvs' >> ~/.zshrc
echo 'source /usr/local/share/python/virtualenvwrapper.sh' >> ~/.zshrc
@bsodmike
Copy link
Author

Homebrew install notes

==> Caveats
Homebrew's Python framework
  /usr/local/Cellar/python/2.7.4/Frameworks/Python.framework

Python demo
  /usr/local/share/python/Extras

Distribute and Pip have been installed. To update them
  pip install --upgrade distribute
  pip install --upgrade pip

To symlink "Idle" and the "Python Launcher" to ~/Applications
  `brew linkapps`

You can install Python packages with (the outdated easy_install or)
  `pip install <your_favorite_package>`

They will install into the site-package directory
  /usr/local/lib/python2.7/site-packages

Executable python scripts will be put in:
  /usr/local/share/python
so you may want to put "/usr/local/share/python" in your PATH, too.

See: https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python
==> Summary
  /usr/local/Cellar/python/2.7.4: 5195 files, 80M, built in 2.6 minutes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment