pythonshellnpmpippackage

How to output the latest version of a pip package?


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.


Solution

  • 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)