Last active
July 14, 2017 10:11
-
-
Save mcleonard/c1e07c2d4bd80c80f474 to your computer and use it in GitHub Desktop.
Update all Python 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
pip list --outdated | grep -Eo '^[^ ]+' | xargs pip install -U |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a bash command for updating all Python packages installed with pip. It first gets a list of all outdated packages, then selects the package name from each line, then updates each package. This is best done in a virtualenv so you can keep everything up to date.