When you are making use of the pip install command and you want to see the list of all available versions for a particular Python package, then you can make use of the pip index command.
Syntax:
pip index versions <package-name>
Example:
pip index versions torch
torch (2.0.1)
Available versions: 2.0.1, 2.0.0
pip index versions requests
requests (2.31.0)
Available versions: 2.31.0, 2.30.0, 2.29.0, 2.28.2, 2.28.1,
2.28.0, 2.27.1, 2.27.0, 2.26.0, 2.25.1, 2.25.0, 2.24.0, 2.23.0,
2.22.0, 2.21.0, 2.20.1, 2.20.0, 2.19.1, 2.19.0, 2.18.4, 2.18.3,..
, 0.3.1, 0.3.0, 0.2.4, 0.2.3, 0.2.2, 0.2.1, 0.2.0
INSTALLED: 2.31.0
LATEST: 2.31.0
If a package is not available then you will see an error,

pip: Check Version of a Package
We can make use of the pip show command to get the version detail of any package.
pip show requests
Name: requests
Version: 2.31.0
Summary: Python HTTP for Humans.
Home-page: https://requests.readthedocs.io
Author: Kenneth Reitz
Author-email: me@kennethreitz.org
License: Apache 2.0
Location: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
Requires: certifi, charset-normalizer, idna, urllib3
Required-by: azure-core, jupyterlab_server
-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to PIP,
- pip install see the list of all available versions of package
- Fix - E: Package python3-pip has no installation candidate
- Fix: >>> pip install - SyntaxError: invalid syntax
- Python: How to install psycopg2 using pip
- Check If Python pip modules are outdated and New Version is Available
- Update All Outdated Modules/Packages using pip3
- WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
- How to list all versions of Python Modules Available using pip/pip3
- How to install multiple Python Packages at once using pip/pip3 command
- pip/pip3 ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied
- How to upgrade pip/pip3 package installer for Python
- pip install specific version of a Python Package
- Fix: error: legacy-install-failure Python pip/pip3
- Fix Python WARNING: You are using pip version 19 however version 21 is available
More Posts:
- How to Print to stderr in Python - Python
- Java: The value of the local variable string is not used - Java
- How to Change Java JDK Version in IntelliJ IDE - Java
- Change the default diff or commit editor for git - Git
- java.lang.NoClassDefFoundError android.support.v4.content.LocalBroadcastManager - Android
- Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end users experience - Java
- PowerShell For Each Loop Examples - Powershell
- Fix - zsh: command not found: conda [macOS] - zsh