Skip to content

Instantly share code, notes, and snippets.

@ryan-blunden
Created April 19, 2012 05:58
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 ryan-blunden/2418993 to your computer and use it in GitHub Desktop.
Save ryan-blunden/2418993 to your computer and use it in GitHub Desktop.
Upgrade pip, virtualenv and virtualenvwrapper on OSX Lion
#!/bin/bash
# Upgrade pip, virtualenv, virtualenvwrapper to the latest versions for the current version of python
# Ryan Blunden
site_packages=`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
sudo rm -fr $site_packages/pip-*
sudo rm -fr $site_packages/virtualenv-*
sudo rm -fr $site_packages/virtualenvwrapper-*
sudo easy_install pip
sudo easy_install virtualenv
sudo easy_install virtualenvwrapper
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment