Skip to content

Instantly share code, notes, and snippets.

@Alir3z4
Created November 7, 2012 12:33
Show Gist options
  • Save Alir3z4/4031359 to your computer and use it in GitHub Desktop.
Save Alir3z4/4031359 to your computer and use it in GitHub Desktop.
import pip
from subprocess import call
for dist in pip.get_installed_distributions():
print 'Upgrading %s' % dist.project_name
call("pip2 install --upgrade " + dist.project_name, shell=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment