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