Created
May 13, 2017 03:13
-
-
Save greyli/0d775c8ba0a52a3ea1f879c1c69d37f2 to your computer and use it in GitHub Desktop.
Upgrading all packages with pip
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
# http://stackoverflow.com/questions/2720014/upgrading-all-packages-with-pip | |
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