2019-07-31 04:16:47 +01:00
|
|
|
# pip3
|
|
|
|
|
|
|
|
> Python package manager.
|
|
|
|
> More information: <https://pip.pypa.io>.
|
|
|
|
|
2019-10-18 03:11:45 +01:00
|
|
|
- Find available packages:
|
|
|
|
|
|
|
|
`pip3 search {{package_name}}`
|
|
|
|
|
2019-07-31 04:16:47 +01:00
|
|
|
- Install a package:
|
|
|
|
|
|
|
|
`pip3 install {{package_name}}`
|
|
|
|
|
|
|
|
- Install a specific version of a package:
|
|
|
|
|
|
|
|
`pip3 install {{package_name}}=={{package_version}}`
|
|
|
|
|
|
|
|
- Upgrade a package:
|
|
|
|
|
|
|
|
`pip3 install --upgrade {{package_name}}`
|
|
|
|
|
|
|
|
- Uninstall a package:
|
|
|
|
|
|
|
|
`pip3 uninstall {{package_name}}`
|
|
|
|
|
|
|
|
- Save the list of installed packages to a file:
|
|
|
|
|
|
|
|
`pip3 freeze > {{requirements.txt}}`
|
|
|
|
|
|
|
|
- Install packages from a file:
|
|
|
|
|
|
|
|
`pip3 install --requirements {{requirements.txt}}`
|
|
|
|
|
|
|
|
- Show installed package info:
|
|
|
|
|
|
|
|
`pip3 show {{package_name}}`
|