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:
|
|
|
|
|
2023-12-27 07:22:49 +01:00
|
|
|
`pip install -r {{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):
|
|
|
|
|
2021-10-15 08:30:38 +05:30
|
|
|
`pip install --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:
|
|
|
|
|
2021-10-15 08:30:38 +05:30
|
|
|
`pip install --editable {{.}}`
|