Skip to content

Instantly share code, notes, and snippets.

@channprj
Created June 24, 2016 19:25
Show Gist options
  • Save channprj/4e49c81711cc76b250b531cfde4fdea0 to your computer and use it in GitHub Desktop.
Save channprj/4e49c81711cc76b250b531cfde4fdea0 to your computer and use it in GitHub Desktop.
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