18.04 has old version of pip and installing pip from pip creates a mess
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-pip (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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="$
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
ProcVersionSign
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)
PackageArchitec
SourcePackage: python-pip
UpgradeStatus: Upgraded to bionic on 2018-05-18 (4 days ago)
summary: |
- After upgrade to 18.04, all pip and pip3 commands fail + 18.04 has old version of pip and installing pip from pip creates a mess |
Another verified work-around that needs no alteration to the PATH:
1. sudo apt-get purge python-pip python3-pip
2. Delete all of the pip/pip3 stuff under .local including the packages.
3. sudo apt-get install python-pip python3-pip
4. Using pip and/or pip3, reinstall needed Python packages.