From bcb0d71dd32d38f958a8a68b93b7485694c12067 Mon Sep 17 00:00:00 2001 From: VHarisop Date: Fri, 2 Jun 2017 13:09:48 +0300 Subject: [PATCH] Updated pip sheet with an upgrade option for newer versions --- cheat/cheatsheets/pip | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheat/cheatsheets/pip b/cheat/cheatsheets/pip index e5b5009..a4a4dfb 100644 --- a/cheat/cheatsheets/pip +++ b/cheat/cheatsheets/pip @@ -23,5 +23,8 @@ pip list --outdated # Upgrade all outdated packages, thanks to http://stackoverflow.com/a/3452888 pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U +# Upgrade outdated packages on latest version of pip +pip list --outdated --format=freeze | cut -d = -f 1 | xargs -n1 pip install -U + # Install specific version of a package pip install -I SomePackage1==1.1.0 'SomePackage2>=1.0.4'