tldr/pages/common/pip.md

34 lines
696 B
Markdown
Raw Normal View History

2014-02-22 13:58:32 +00:00
# pip
> Python package manager.
> Some subcommands such as `pip install` have their own usage documentation.
> 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}}`
2014-02-22 13:58:32 +00:00
- Install a package to the user's directory instead of the system-wide default location:
`pip install --user {{package}}`
- Upgrade a package:
2014-02-22 13:58:32 +00:00
`pip install --upgrade {{package}}`
2014-02-22 13:58:32 +00:00
- Uninstall a package:
2014-02-22 13:58:32 +00:00
`pip uninstall {{package}}`
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}}`
- Install packages from a file:
`pip install --requirement {{requirements.txt}}`