Created
October 25, 2015 09:46
-
-
Save pgilad/cee64c411fb180f7eb0b to your computer and use it in GitHub Desktop.
pip upgrade all packages
This file contains 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 | |
import subprocess | |
for dist in pip.get_installed_distributions(): | |
call_str = "pip install --upgrade {0}".format(dist.project_name) | |
print "Upgrading {}".format(dist.project_name) | |
subprocess.call(call_str, shell=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment