Skip to content

Instantly share code, notes, and snippets.

@soldni
Created June 20, 2014 21:18
Show Gist options
  • Save soldni/42a821a94c4da536959e to your computer and use it in GitHub Desktop.
Save soldni/42a821a94c4da536959e to your computer and use it in GitHub Desktop.
update all pip packages at once (from http://stackoverflow.com/a/5839291)
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