LinuxCommandLibrary

pip-index

Inspect package index version information

TLDR

List available versions of a package
$ pip index versions [package]
copy
Show available versions including pre-releases
$ pip index versions --pre [package]
copy
List versions from a custom package index
$ pip index versions --index-url [https://pypi.example.com/simple] [package]
copy
List versions for a specific platform
$ pip index versions --platform [manylinux2014_x86_64] [package]
copy

SYNOPSIS

pip index command [options] package

DESCRIPTION

pip index inspects package index information. Shows available versions for packages from PyPI or custom indexes. Useful for checking which versions are available before installation.
The versions subcommand lists all available versions for a package, with the latest version shown first. Platform and Python version filters can restrict results to compatible packages.

PARAMETERS

versions package

List available versions for a package.
--pre
Include pre-release and development versions.
-i, --index-url url
Base URL of the Python Package Index (default: https://pypi.org/simple).
--extra-index-url url
Extra URLs of package indexes to use in addition to --index-url.
--platform platform
Only use wheels compatible with the specified platform.
--python-version version
Python version for compatibility checks (e.g., 3.11).
--implementation impl
Python implementation (e.g., cp for CPython, pp for PyPy).
--abi abi
Only use wheels compatible with the specified ABI tag.
--no-binary formatcontrol_
Do not use binary packages.

SEE ALSO

pip(1), pip-install(1), pip-show(1), pip-list(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard