After upgrading ubuntu pip started throwing the following error...

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:

remove pip sudo apt-get purge python-pip

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

python get-pip.py

reboot the server sudo reboot

Welcome to The infinite monkey theorem

Somewhere a monkey just typed Shakespeare in TypeScript. Be the first to read the masterpieces (and the hilarious misfires) landing on the blog.

Subscribe to The infinite monkey theorem

We fling fresh posts—no banana peels attached—straight to your inbox.