"pip3 list --outdated" raises TypeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pip |
Unknown
|
Unknown
|
|||
python-pip (Debian) |
Fix Released
|
Unknown
|
|||
python-pip (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Observed:
$ pip3 list --outdated
Exception:
Traceback (most recent call last):
File "/usr/lib/
status = self.run(options, args)
File "/usr/lib/
self.
File "/usr/lib/
if latest_version > dist.parsed_
TypeError: unorderable types: Version() > SetuptoolsVersion()
Expected: a list of outdated packages is displayed.
This particular exception appears to be discussed upstream at:
https:/
where an upstream dev says, quote, "I don't think there's anything we can reasonably do here, you're running a patched or unsupported version of pip. You should file a bug with whomever gave you your copy of pip and ask them to stop patching it."
$ lsb_release -rd && apt-cache policy python3-pip
Description: Ubuntu 16.04 LTS
Release: 16.04
python3-pip:
Installed: 8.1.1-2
Candidate: 8.1.1-2
Version table:
*** 8.1.1-2 500
500 http://
500 http://
100 /var/lib/
tags: | added: artful |
Changed in python-pip (Debian): | |
status: | Unknown → New |
tags: | added: bionic |
tags: | added: eoan |
Changed in python-pip (Debian): | |
status: | New → Fix Released |
Changed in python-pip (Debian): | |
status: | Fix Released → New |
Changed in python-pip (Debian): | |
status: | New → Unknown |
Changed in python-pip (Debian): | |
status: | Unknown → Confirmed |
tags: | added: focal |
Changed in python-pip (Debian): | |
status: | Confirmed → Fix Released |
A workaround is:
$ pip3 install --user --no-deps pip 1-py2.py3- none-any. whl (1.2MB) ███████ ███████ ███████ █████| 1.2MB 612kB/s
Collecting pip
Downloading pip-8.1.
100% |██████
Installing collected packages: pip
Successfully installed pip-8.1.1
…(i.e. exactly the same version of pip) and ensure ~/.local/bin is in my $PATH.