pip virtualenv virtualenvwrapper osx install on mac

To install pip, virtual environment (virtualenv, virtualenvwrapper) on OS X, do the following on the command line:


To enable the workon tab-completion feature, append the following to your profile file (located at ~/.profile):

Create a directory to house the virtual environments:

Create a new virtual environment for your project:

NOTE: Apple’s development tools needs to be installed: Xcode http://itunes.apple.com/us/app/xcode/id448457090
The “installer” only downloads the file to Applications — you still need to install Xcode.
Running the installer normally may freeze. If so, right click and choose “Show Package Contents” then look for Xcode.mpkg in /Applications/Install Xcode.app/Contents/Resources/Xcode.mpkg and run that instead.