pip Cheat Sheet/List available versions

Show candidate versions for a package from the index.

Section: Inspect and Verify

List available versions

bash
bash
python -m pip index versions requests
Explanation

Useful when choosing a version pin or troubleshooting resolver issues.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Inspect and Verify
Inspect environment as JSON
Output structured JSON details for the environment.
OpenIn sheetbashsame section
Check dependency health
Report broken or incompatible installed dependencies.
OpenIn sheetbashsame section
Freeze installed packages
Output pinned installed versions.
OpenIn sheetbashsame section
Download without installing
Fetch distributions locally without modifying the environment.
OpenIn sheetbashsame section
Show pip version
Print the installed pip version and Python path.
OpenIn sheetbash1 tag match
Install from a custom index
Use a specific package index URL.
OpenIn sheetbash1 tag match