mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-08 02:45:53 +00:00
30 lines
720 B
Plaintext
30 lines
720 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|