tldr/pages/common/pip.md

25 lines
425 B
Markdown
Raw Normal View History

2014-02-22 13:58:32 +00:00
# pip
> Python package manager.
> More information: <https://pip.pypa.io>.
2014-02-22 13:58:32 +00:00
2020-12-30 13:25:03 +00:00
- Install a package (see `pip install` for more install examples):
2014-02-22 13:58:32 +00:00
`pip install {{package_name}}`
2014-02-22 13:58:32 +00:00
- Upgrade a package:
2014-02-22 13:58:32 +00:00
`pip install -U {{package_name}}`
2014-02-22 13:58:32 +00:00
- Uninstall a package:
2014-02-22 13:58:32 +00:00
`pip uninstall {{package_name}}`
2014-02-22 13:58:32 +00:00
- Save installed packages to file:
2014-02-22 13:58:32 +00:00
`pip freeze > {{requirements.txt}}`
2019-04-18 07:02:08 +01:00
- Show installed package info:
`pip show {{package_name}}`