Skip to content

Instantly share code, notes, and snippets.

@andli
Last active January 26, 2018 09:33
Show Gist options
  • Save andli/b4c0afe6b4a6d462b5d635e337096afa to your computer and use it in GitHub Desktop.
Save andli/b4c0afe6b4a6d462b5d635e337096afa to your computer and use it in GitHub Desktop.
Update all pip packages
import pip
from subprocess import call
packages = [dist.project_name for dist in pip.get_installed_distributions()]
call("pip install --upgrade " + ' '.join(packages), shell=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment