Skip to content

Instantly share code, notes, and snippets.

@rodnaxel
Created January 16, 2017 06:50
Show Gist options
  • Save rodnaxel/f7d9f0b4ef6c93671759abdf403439ae to your computer and use it in GitHub Desktop.
Save rodnaxel/f7d9f0b4ef6c93671759abdf403439ae to your computer and use it in GitHub Desktop.
Update all packages in 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