Skip to content

Instantly share code, notes, and snippets.

@rochacbruno
Forked from bahostetterlewis/update-pip-advanced.py
Created May 21, 2013 03:59
Show Gist options
  • Save rochacbruno/5617401 to your computer and use it in GitHub Desktop.
Save rochacbruno/5617401 to your computer and use it in GitHub Desktop.
# SOURCE: http://stackoverflow.com/questions/2720014/upgrading-all-packages-with-pip
# placed here for my easy finding
import pip
from subprocess import call
for dist in pip.get_installed_distributions():
call("pip 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