Error in --outdated
and --uptodate
parameters from pip list
#6012
Labels
auto-locked
Outdated issues that have been locked by automation
resolution: duplicate
Duplicate of an existing issue/PR
Environment
Description
I receive an error every time I run
pip3 list --outdated
, and I receive no output after runningpip3 list --uptodate
.Expected behavior
A list of outdated python packages, example for
pip3 list --outdated
:And example for
pip3 list --uptodate
:How to Reproduce
outdated:
pip3
package from 'apt install python3-pip' withsudo
pip3 list --outdated
TypeError
exception raises.uptodate:
pip3
package from 'apt install python3-pip' withsudo
pip3 list --uptodate
Output
After running
pip3 list --outdated
, the following exception raises:By adding some prints at the source code, I found that the two objects being compared are instances of
<class 'pip._vendor.packaging.version.Version'>
and<class 'pkg_resources.extern.packaging.version.Version'>
respectively.And after running
pip3 list --uptodate
, nothing appears. The objects being compared follow the same pattern as described above.The text was updated successfully, but these errors were encountered: