1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 17:55:24 +02:00
tldr/pages/common/pip3.md

33 lines
573 B
Markdown
Raw Normal View History

2019-07-30 23:16:47 -04:00
# pip3
> Python package manager.
> More information: <https://pip.pypa.io>.
- Install a package:
`pip3 install {{package}}`
2019-07-30 23:16:47 -04:00
- Install a specific version of a package:
`pip3 install {{package}}=={{version}}`
2019-07-30 23:16:47 -04:00
- Upgrade a package:
`pip3 install {{[-U|--upgrade]}} {{package}}`
2019-07-30 23:16:47 -04:00
- Uninstall a package:
`pip3 uninstall {{package}}`
2019-07-30 23:16:47 -04:00
- Save the list of installed packages to a file:
`pip3 freeze > {{requirements.txt}}`
- Install packages from a file:
`pip3 install {{[-r|--requirement]}} {{requirements.txt}}`
2019-07-30 23:16:47 -04:00
- Show installed package info:
`pip3 show {{package}}`