[Python-modules-team] Bug#928190: /usr/bin/pip ImportError

Luke Francis lfrancis at zappallas-usa.com
Mon Apr 29 17:28:00 BST 2019


Package: python-pip
Version: 9.0.1-2+deb9u1

When I invoke `usr/bin/pip` i receive an error.

$ /usr/bin/pip
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main

Changing `from pip import main` to `from pip._internal import main as main`
within `/usr/bin/pip` resolves the issue:

Started seeing this issue after updating
https://tracker.debian.org/news/1038095/accepted-python-pip-901-2deb9u1-source-all-into-proposed-updates-stable-new-proposed-updates/

I am using Debian stretch 9.9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20190429/34cfc903/attachment.html>


More information about the Python-modules-team mailing list