On Thu, 22 Nov 2018 13:53:24 -0700 Alexander William Wong <a...@udia.ca> wrote: > Package: python3-pip > Version: 9.0.1-2.3 > Severity: important > > > Dear Maintainer, > > I upgraded python3-pip and python3 today. > > Running pip3, I see that the wrapper script is broken. > The wrapper script should import from main.__internal__ instead of main. > > The paths for pip3 and python3 -m pip --version are the same. > > ===== > $ pip3 > Traceback (most recent call last): > File "/usr/bin/pip3", line 9, in <module> > from pip import main > ImportError: cannot import name 'main' from 'pip' > (/home/alexander/.local/lib/python3.7/site-packages/pip/__init__.py) > > $ python3 -m pip --version > pip 18.1 from /home/alexander/.local/lib/python3.7/site-packages/pip (python > 3.7) > =====
Actually, the original issue was that you installed newer pip into your home directory, but used the wrapper script from a previous version which the Debian package shipped. The upstream version changed the name of the package shipping "main" which is why this failed for you. -- Cheers, Andrej