mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
pip-{index, inspect, wheel}: add page (#18387)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# pip index
|
||||
|
||||
> Inspect information available from package indexes.
|
||||
> More information: <https://pip.pypa.io/en/stable/cli/pip_index/>.
|
||||
|
||||
- List all available versions of a package:
|
||||
|
||||
`pip index versions {{package}}`
|
||||
|
||||
- List versions from a specific index:
|
||||
|
||||
`pip index versions {{package}} --index-url {{https://test.pypi.org/simple/}}`
|
||||
|
||||
- Include pre-release versions:
|
||||
|
||||
`pip index versions {{package}} --pre`
|
||||
|
||||
- Include an additional index:
|
||||
|
||||
`pip index versions {{package}} --extra-index-url {{https://example.com/simple/}}`
|
||||
|
||||
- List versions for a specific platform:
|
||||
|
||||
`pip index versions {{package}} --platform {{linux_x86_64}}`
|
||||
@@ -0,0 +1,28 @@
|
||||
# pip inspect
|
||||
|
||||
> Inspect the Python environment and produce a report in JSON format.
|
||||
> More information: <https://pip.pypa.io/en/stable/cli/pip_inspect/>.
|
||||
|
||||
- Inspect the current environment:
|
||||
|
||||
`pip inspect`
|
||||
|
||||
- Inspect and save output to a file:
|
||||
|
||||
`pip inspect > {{environment_report.json}}`
|
||||
|
||||
- Inspect only locally installed packages (not global):
|
||||
|
||||
`pip inspect --local`
|
||||
|
||||
- Inspect only user-installed packages:
|
||||
|
||||
`pip inspect --user`
|
||||
|
||||
- Inspect packages in a specific path:
|
||||
|
||||
`pip inspect --path {{path/to/environment}}`
|
||||
|
||||
- Inspect with verbose output (Note: the `-v` flag can be repeated to increase verbosity):
|
||||
|
||||
`pip inspect {{[-v|--verbose]}}`
|
||||
@@ -0,0 +1,28 @@
|
||||
# pip wheel
|
||||
|
||||
> Build wheel archives for packages and dependencies.
|
||||
> More information: <https://pip.pypa.io/en/stable/cli/pip_wheel/>.
|
||||
|
||||
- Build a wheel for a package:
|
||||
|
||||
`pip wheel {{package}}`
|
||||
|
||||
- Build wheels for packages in requirements file:
|
||||
|
||||
`pip wheel {{[-r|--requirement]}} {{path/to/requirements.txt}}`
|
||||
|
||||
- Build wheel to a specific directory:
|
||||
|
||||
`pip wheel {{package}} {{[-w|--wheel-dir]}} {{path/to/directory}}`
|
||||
|
||||
- Build wheel without dependencies:
|
||||
|
||||
`pip wheel {{package}} --no-deps`
|
||||
|
||||
- Build wheel from local project:
|
||||
|
||||
`pip wheel {{path/to/project}}`
|
||||
|
||||
- Build wheel from Git repository:
|
||||
|
||||
`pip wheel git+{{https://github.com/user/repo.git}}`
|
||||
Reference in New Issue
Block a user