Skip to content

Instantly share code, notes, and snippets.

@stypr
Created July 1, 2015 09:24
Show Gist options
  • Save stypr/90421f4cfc8940e1f75b to your computer and use it in GitHub Desktop.
Save stypr/90421f4cfc8940e1f75b 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