Setting up python with virtualenv & virtualenvwrapper on OS X – Mountain Lion (10.8.2)

It’s pretty straight forward. There are only a couple of differences from linux.


Here are the steps:

  • brew install python (Currently 2.7)
  • pip install virtualenv
  • pip install virtualenvwrapper
  • find / -name (should be in: /usr/local/share/python/
  • Add the following lines to ~/.bash_profile or ~/.bashrc
    • export PATH=/usr/local/share/python:$PATH
    • export WORKON_HOME=$HOME/.virtualenvs
    • source /usr/local/share/python/
  • source [~/.bash_profile|~/.bashrc]

That’s it you’re done!

Leave a Reply