Skip to content

Instantly share code, notes, and snippets.

@joshz
Created September 20, 2011 08:56
Show Gist options
  • Save joshz/1228688 to your computer and use it in GitHub Desktop.
Save joshz/1228688 to your computer and use it in GitHub Desktop.
update all modules with pip
# py 2.7 - upgrading brakes for: pil, pyzmq, lxml, ipython, numpy, pyflakes, pygame pylint, some complain about non empty build dir, easy fix
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