1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/pip.md

33 lines
546 B
Markdown
Raw Normal View History

2014-02-22 08:58:32 -05:00
# pip
> Python package manager.
> More information: <https://pip.pypa.io>.
2014-02-22 08:58:32 -05:00
- Install a package:
2014-02-22 08:58:32 -05:00
`pip install {{package_name}}`
2014-02-22 08:58:32 -05:00
- Install a specific version of a package:
`pip install {{package_name}}=={{package_version}}`
- Upgrade a package:
2014-02-22 08:58:32 -05:00
`pip install -U {{package_name}}`
2014-02-22 08:58:32 -05:00
- Uninstall a package:
2014-02-22 08:58:32 -05:00
`pip uninstall {{package_name}}`
2014-02-22 08:58:32 -05:00
- Save installed packages to file:
2014-02-22 08:58:32 -05:00
`pip freeze > {{requirements.txt}}`
- Install packages from file:
2014-02-22 08:58:32 -05:00
`pip install -r {{requirements.txt}}`
2019-04-18 14:02:08 +08:00
- Show installed package info:
`pip show {{package_name}}`