Skip to content

Instantly share code, notes, and snippets.

@martinrusev
Created October 31, 2012 10:35
Show Gist options
  • Save martinrusev/3986329 to your computer and use it in GitHub Desktop.
Save martinrusev/3986329 to your computer and use it in GitHub Desktop.
Pip Update all 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