I think I found a solution but not sure if it's the "right" thing to do
so maybe experts can comment?

You need to modify the pip file: sudo vim /usr/bin/pip3

The original code is:

from pip import main
if __name__ == '__main__':
    sys.exit(main())

Need to change to:

from pip import __main__
if __name__ == '__main__':
    sys.exit(__main__._main())

Then run this: sudo pip3 install pip --upgrade

Then you can run:
sudo pip3 list --outdated

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579181

Title:
  "pip3 list --outdated" raises TypeError

To manage notifications about this bug go to:
https://bugs.launchpad.net/pip/+bug/1579181/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to