Skip to content

Instantly share code, notes, and snippets.

@RyanBalfanz
Created April 9, 2012 23:13
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 RyanBalfanz/2347269 to your computer and use it in GitHub Desktop.
Save RyanBalfanz/2347269 to your computer and use it in GitHub Desktop.
pip install -U ALL_THE_THINGS
import pip
from subprocess import call
for dist in pip.get_installed_distributions():
try:
call("pip install --upgrade " + dist.project_name, shell=True)
except Exception as e:
print "Caught Exception: {error}".format(error=e)
print "Dunzo"
@RyanBalfanz
Copy link
Author

Can't find the SO post anymore…

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