/ ubuntu

Python pip IncompleteRead error after Ubuntu upgrade

After upgrading ubuntu pip started throwing the following error:

ImportError: cannot import name IncompleteRead

It looks like the problem is caused by system installing old version of pip:

  1. remove pip
    sudo apt-get purge python-pip

  2. install latest version of pip
    wget https://bootstrap.pypa.io/get-pip.py

python get-pip.py

  1. reboot the server
    sudo reboot