Given the name of a Python package that can be installed with pip, is there any way to find out a list of all the possible versions of it that pip could install? Right now it's trial and error.
I'm trying to install a version for a third party library, but the newest version is too new, there were backwards incompatible changes made. So I'd like to somehow have a list of all the versions that pip knows about, so that I can test them.
Best Answer
For pip >= 21.2 use:
Note that this command is experimental, and might change in the future!
For pip >= 21.1 use:
For pip >= 20.3 use:
For pip >= 9.0 use:
The available versions will be printed without actually downloading or installing any packages.
For pip < 9.0 use:
where
blork
can be any string that is not a valid version number.