Addition to pip cheatsheat

Added shorter alternative to "updating outdated packages".
This commit is contained in:
Solt Budavári 2016-03-18 18:01:56 +00:00
parent 3d90b26b04
commit d90080ec01

View File

@ -17,5 +17,8 @@ pip list --outdated
# Upgrade all outdated packages, thanks to http://stackoverflow.com/a/3452888 # 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 pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
# UPgrade all outdated packages (shorter command)
pip3 install -U $( pip3 list -o | cut -d" " -f1 )
# Install specific version of a package # Install specific version of a package
pip install -I SomePackage1==1.1.0 'SomePackage2>=1.0.4' pip install -I SomePackage1==1.1.0 'SomePackage2>=1.0.4'