Skip to content

Instantly share code, notes, and snippets.

@sljeff
Created October 8, 2016 00:51
Show Gist options
  • Save sljeff/e04b9a326063d2f2df5a6f17342c73db to your computer and use it in GitHub Desktop.
Save sljeff/e04b9a326063d2f2df5a6f17342c73db to your computer and use it in GitHub Desktop.
pip upgrade 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