Public bug reported:

Both pip and pip3 seem to be broken in 18.04.
So, this bug report applies to python3-pip too.

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

Work-around: export PATH="${HOME}/.local/bin:$PATH"
After applying this work-around, both pip and pip3 work as expected i.e. before 
my upgrade from 17.10 to 18.04.

Note that I keep my Python 2 and 3 packages under $HOME/.local in case
that is relevant.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: python-pip 9.0.1-2
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue May 22 15:46:35 2018
InstallationDate: Installed on 2017-10-13 (221 days ago)
InstallationMedia: Xubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170926)
PackageArchitecture: all
SourcePackage: python-pip
UpgradeStatus: Upgraded to bionic on 2018-05-18 (4 days ago)

** Affects: python-pip (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

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

Title:
  After upgrade to 18.04, all pip and pip3 commands fail

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1772746/+subscriptions

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

Reply via email to