Skip to content

Instantly share code, notes, and snippets.

@philip-goh
Created October 16, 2012 20:06
Show Gist options
  • Save philip-goh/3901648 to your computer and use it in GitHub Desktop.
Save philip-goh/3901648 to your computer and use it in GitHub Desktop.
Update all python 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