Last active
July 27, 2018 08:18
-
-
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.
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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-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