mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
Add the cheat sheet for pip.
This commit is contained in:
parent
417f47f037
commit
30a49d3596
17
cheat/cheatsheets/pip
Normal file
17
cheat/cheatsheets/pip
Normal file
@ -0,0 +1,17 @@
|
||||
# Search for packages
|
||||
pip search SomePackage
|
||||
|
||||
# Install some packages
|
||||
pip install SomePackage
|
||||
|
||||
# Show details of a package
|
||||
pip show SomePackage
|
||||
|
||||
# List outdated packages
|
||||
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
|
||||
|
||||
# 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