Skip to content

Instantly share code, notes, and snippets.

@nayyarv
Last active July 27, 2018 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nayyarv/9e3ecf8d8f785dec1ef5 to your computer and use it in GitHub Desktop.
Save nayyarv/9e3ecf8d8f785dec1ef5 to your computer and use it in GitHub Desktop.
Pip upgrade skips external packages and continues in event of upgrade failure. Only user installs.
# pip2
pip2 list outdated T -n+3 | awk '{print $1}' | xargs -n1 pip2 install -U --user
pip3 list outdated T -n+3 | awk '{print $1}' | xargs -n1 pip3 install -U --user
@nayyarv
Copy link
Author

nayyarv commented Dec 16, 2015

-n1 means pip keeps going even if one package installation fails. Best for something that doesn't depend too heavily on dependencies and is best for bringing an old machine back up to date

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