Skip to content

Instantly share code, notes, and snippets.

@n9986
Created May 25, 2012 11:06
Show Gist options
  • Save n9986/2787345 to your computer and use it in GitHub Desktop.
Save n9986/2787345 to your computer and use it in GitHub Desktop.
Upgrade all pip packages
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