Travisq Travisq - 1 year ago 204
Python Question

pip3 ImportError: cannot import name 'IncompleteRead'

Having trouble installing modules via

, tried several suggestions from top voted thread from Dec' 2014, but still getting the following:

sudo pip3 install send2trash
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
load_entry_point('pip==1.5.6', 'console_scripts', 'pip3')()
File "/usr/lib/python3/dist-packages/pkg_resources/", line 558, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/", line 2682, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/", line 2355, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/", line 2361, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3/dist-packages/pip/", line 74, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/lib/python3/dist-packages/pip/vcs/", line 9, in <module>
from import path_to_url
File "/usr/lib/python3/dist-packages/pip/", line 25, in <module>
from requests.compat import IncompleteRead
ImportError: cannot import name 'IncompleteRead'

On Ubuntu 15.10; tried removing python 3 completely and reinstalling, still having issues. Help?

Edit: UPDATE: Tried using my bootable USB to repair Ubuntu and get back to original config and reinstalled via sudo apt-get install python3-pip, but now it generates a crash report saying:

Sorry, the application pip3 has unexpectedly crashed.

Jim Jim
Answer Source

This seems to be an issue with pip's interaction with the requests package. requests dropped the IncompleteRead module but older versions of pip, which you have, still rely on it, newer versions don't.

You should try updating pip via easy_install-3.5 (if you have Python 3.5) or easy_install-3 for other versions:

sudo easy_install-3.5 -U pip


sudo easy_install-3 -U pip

and you should be good to go.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download