mirror of
https://github.com/cheat/cheat.git
synced 2024-11-23 22:41:35 +01:00
Addition to pip cheatsheat
Added shorter alternative to "updating outdated packages".
This commit is contained in:
parent
3d90b26b04
commit
d90080ec01
@ -17,5 +17,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 all outdated packages (shorter command)
|
||||
pip3 install -U $( pip3 list -o | cut -d" " -f1 )
|
||||
|
||||
# Install specific version of a package
|
||||
pip install -I SomePackage1==1.1.0 'SomePackage2>=1.0.4'
|
||||
|
Loading…
Reference in New Issue
Block a user