python pip broken on ubuntu
Solution 1:
this has been answered here.
But I will paste the answer as I don't have enough points to mark this a duplicate.
apt-get installs a much older version of pip which can lead to problems, completely remove python-pip with:
apt-get remove --purge python-pip
then:
curl https://bootstrap.pypa.io/get-pip.py | sudo python
using sudo if required
Solution 2:
sudo apt install --reinstall python
sudo apt purge python-pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
All problem done
all of this problem result from /etc/pip
.