Created
April 9, 2012 23:13
-
-
Save RyanBalfanz/2347269 to your computer and use it in GitHub Desktop.
pip install -U ALL_THE_THINGS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can't find the SO post anymore…