Skip to content

Instantly share code, notes, and snippets.

@damienstanton
Last active August 29, 2015 14:06
Show Gist options
  • Save damienstanton/85f92809e532ec1e6121 to your computer and use it in GitHub Desktop.
Save damienstanton/85f92809e532ec1e6121 to your computer and use it in GitHub Desktop.
Easily update all your pip dependencies. Works in venv or system.
# If using Flask-Script, simply drop this into manage.py under a @manage.command decorator
def update():
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