Created
April 10, 2015 15:01
-
-
Save jovianlin/89d1ba79aaec1c905dc4 to your computer and use it in GitHub Desktop.
Upgrading all packages with pip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pip | |
from subprocess import call | |
for dist in pip.get_installed_distributions(): | |
call("sudo -H 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