2019-07-31 04:16:47 +01:00
|
|
|
# pip3
|
|
|
|
|
|
|
|
> Python package manager.
|
|
|
|
> More information: <https://pip.pypa.io>.
|
|
|
|
|
|
|
|
- Install a package:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`pip3 install {{package}}`
|
2019-07-31 04:16:47 +01:00
|
|
|
|
|
|
|
- Install a specific version of a package:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`pip3 install {{package}}=={{version}}`
|
2019-07-31 04:16:47 +01:00
|
|
|
|
|
|
|
- Upgrade a package:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`pip3 install --upgrade {{package}}`
|
2019-07-31 04:16:47 +01:00
|
|
|
|
|
|
|
- Uninstall a package:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`pip3 uninstall {{package}}`
|
2019-07-31 04:16:47 +01:00
|
|
|
|
|
|
|
- Save the list of installed packages to a file:
|
|
|
|
|
|
|
|
`pip3 freeze > {{requirements.txt}}`
|
|
|
|
|
|
|
|
- Install packages from a file:
|
|
|
|
|
2021-06-18 02:52:17 +01:00
|
|
|
`pip3 install --requirement {{requirements.txt}}`
|
2019-07-31 04:16:47 +01:00
|
|
|
|
|
|
|
- Show installed package info:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`pip3 show {{package}}`
|