Skip to content

Instantly share code, notes, and snippets.

@VMuliadi
Created April 7, 2018 09:55
Show Gist options
  • Save VMuliadi/250c85d6dffcaca91cfc1932896c0f9a to your computer and use it in GitHub Desktop.
Save VMuliadi/250c85d6dffcaca91cfc1932896c0f9a to your computer and use it in GitHub Desktop.
Upgrade all Python package using pip
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