Pip Cheatsheet
Basic Pip Commands
Install a python package |
|
Install a specific package version |
|
Uninstall a python package |
|
See what versions are available (use illegal version string!) |
|
Upgrade a package |
|
Package Management
List installed packages |
|
List outdated installed packages |
|
Upgrade installed package |
|
Capture installed packages |
|
Install a dependencies file |
|
Search for a package |
|
Deleting secondary or unwanted dependencies, not so easy, hacky solution? :(
-
Capture your dependencies
pip freeze > requirements.ym;
-
Edit
requirements.yml
removing unwanted dependencies -
Make a new virtualenv
-
Install your new dependencies list
pip install -r requirements.yml