Skip to content

Instantly share code, notes, and snippets.

@mdiener21
Created February 24, 2017 13:40
Show Gist options
  • Save mdiener21/e062f1d2d15f33a5ef85a1369f891765 to your computer and use it in GitHub Desktop.
Save mdiener21/e062f1d2d15f33a5ef85a1369f891765 to your computer and use it in GitHub Desktop.
Update all pip installed apps to their newest versions in one go using python
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