Reputation: 124
Similar to how we can run npm show {package} version
to get the latest version available for any npm package, is there an equivalent command for pip/python?
I don't necessarily want to upgrade to that version, I would just like to be able to output the latest version number available for any package.
Upvotes: 1
Views: 2024
Reputation: 21947
Fairly new in pip:
pip index versions --pre <package>
# example
numba (0.61.0rc2)
Available versions: 0.61.0rc2, 0.61.0rc1, 0.60.0 ... (long line) 0.1
Another way:
pip
would install)unzip -l
For example,
https://www.wheelodex.org/projects/numba/
# click on one, click "download" at the bottom
# cd e.g. ~/Downloads
unzip -l numba-0.60.0-cp39-cp39-anylinux2014_x86_64.manylinux_2_17_x86_64.whl
unzip -p xx.whl '*/METADATA' # -p: pipe or stdout
Wheelodex also has View on PyPI
and Reverse Dependencies
,
e.g. "what are all the PyPi projects that depend on numba ?"
Upvotes: 0
Reputation: 94676
List outdated packages with the installed and the latest versions:
pip list --outdated
See the docs.
Upvotes: 2
Reputation: 78
This command just shows the available versions of pip package, if I correctly understand your question.
python -m pip install --upgrade pip==
or to see any package versions:
pip install package_name==
P.s. Yes there will be an error, that says no match)
Upvotes: 2
Reputation: 7566
You can use yolk3k as in this answer.
➜ pip install yolk3k
➜ yolk -V figgypy
figgypy 1.1.9
Upvotes: 1