Skip to content

Instantly share code, notes, and snippets.

@israeljrs
Created January 3, 2018 14:22
Show Gist options
  • Save israeljrs/2b70ce7ea341f469d7b5053682dd1587 to your computer and use it in GitHub Desktop.
Save israeljrs/2b70ce7ea341f469d7b5053682dd1587 to your computer and use it in GitHub Desktop.
how update all packages.
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