Pip 22.3, list: List format 'freeze' can not be used with the --outdated option?

A PR for a doc update would be welcomed.

From the changelog

Remove the ability to use pip list --outdated in combination with --format=freeze. (#9789)

this change was made in issue 9789. In that issue, I provide an alternative:

Actually, if you want the output @matrixise expects, the following gives it:

> py -m pip list --outdated --format=json | jq -r '.[] | .name+\"=\"+.latest_version'
idna=3.1
setuptools=54.2.0
urllib3=1.26.4

(excuse Powershell quoting rules, for Unix probably just omit the backslashes).

(But note that as per the discussion in the issue, this does not provide a list of requirements that will necessarily “upgrade everything” the way you would expect. See the issue for details).

3 Likes