Skip to content

Instantly share code, notes, and snippets.

@gregglind
Created January 9, 2012 16:36
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 gregglind/1583738 to your computer and use it in GitHub Desktop.
Save gregglind/1583738 to your computer and use it in GitHub Desktop.
Install Python Stuff on osx
## these are all untested!
# get a clean python, so you don't contaminate your system.
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
brew install python --framework
# run off and get xcode. Cry while it downloads and installs.
# distribute
curl -O http://python-distribute.org/distribute_setup.py
python distribute_setup.py
# pip
easy_install pip
pip install distribute
pip install virtualenv virtualenvwrapper
# venv off the brewed python
mkvirtualenv -p /usr/local/Cellar/python/2.7.2/bin/python myenv
workon myenv # workon from virtualenvwrapper
# from here you are in a 'clean' python. pip and such from inside it!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment