2025-03-14 21:59:59 -06:00
|
|
|
# pip install
|
|
|
|
|
|
|
|
|
|
> Install Python packages.
|
|
|
|
|
> More information: <https://pip.pypa.io>.
|
|
|
|
|
|
|
|
|
|
- Install a package:
|
|
|
|
|
|
|
|
|
|
`pip install {{package}}`
|
|
|
|
|
|
|
|
|
|
- Install a specific version of a package:
|
|
|
|
|
|
|
|
|
|
`pip install {{package}}=={{version}}`
|
|
|
|
|
|
|
|
|
|
- Install packages listed in a file:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pip install {{[-r|--requirement]}} {{path/to/requirements.txt}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Install packages from an URL or local file archive (.tar.gz | .whl):
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pip install {{[-f|--find-links]}} {{url|path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Install the local package in the current directory in develop (editable) mode:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pip install {{[-e|--editable]}} {{.}}`
|