Skip to content

Instantly share code, notes, and snippets.

@mcleonard
Last active July 14, 2017 10:11
Show Gist options
  • Save mcleonard/c1e07c2d4bd80c80f474 to your computer and use it in GitHub Desktop.
Save mcleonard/c1e07c2d4bd80c80f474 to your computer and use it in GitHub Desktop.
Update all Python packages
pip list --outdated | grep -Eo '^[^ ]+' | xargs pip install -U
@mcleonard
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment