Skip to content

Instantly share code, notes, and snippets.

@erikcox
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikcox/d804c96f165d9b68ea43 to your computer and use it in GitHub Desktop.
Save erikcox/d804c96f165d9b68ea43 to your computer and use it in GitHub Desktop.
Update Python modules with pip (Windows)
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