Skip to content

Instantly share code, notes, and snippets.

@jaege
Created March 24, 2014 02:50
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 jaege/9733350 to your computer and use it in GitHub Desktop.
Save jaege/9733350 to your computer and use it in GitHub Desktop.
Upgrading all packages with pip
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