{"id":239,"hash":"aee6d748187eba44cacbcc35625aab4ac83bffda71a3c57f6d5185e149a04711","pattern":"How do I fix &#39;ImportError: cannot import name IncompleteRead&#39;?","full_message":"When I try to install anything with pip or pip3, I get:\n\n$ sudo pip3 install python3-tk\nTraceback (most recent call last):\n  File \"/usr/bin/pip3\", line 9, in <module>\n    load_entry_point('pip==1.5.6', 'console_scripts', 'pip3')()\n  File \"/usr/lib/python3/dist-packages/pkg_resources.py\", line 356, in load_entry_point\n    return get_distribution(dist).load_entry_point(group, name)\n  File \"/usr/lib/python3/dist-packages/pkg_resources.py\", line 2476, in load_entry_point\n    return ep.load()\n  File \"/usr/lib/python3/dist-packages/pkg_resources.py\", line 2190, in load\n    ['__name__'])\n  File \"/usr/lib/python3/dist-packages/pip/__init__.py\", line 61, in <module>\n    from pip.vcs import git, mercurial, subversion, bazaar  # noqa\n  File \"/usr/lib/python3/dist-packages/pip/vcs/mercurial.py\", line 9, in <module>\n    from pip.download import path_to_url\n  File \"/usr/lib/python3/dist-packages/pip/download.py\", line 25, in <module>\n    from requests.compat import IncompleteRead\nImportError: cannot import name 'IncompleteRead'\n\nI have a Ubuntu 14.10 system.\n\nHow can I fix this problem?","ecosystem":"pypi","package_name":"pip","package_version":null,"solution":"While this previous answer might be the reason, this snipped worked for me as a solution (in Ubuntu 14.04):\n\nFirst remove the package from the package manager:\n\n# apt-get remove python-pip\n\nAnd then install the latest version by side:\n\n# easy_install pip\n\n(thanks to @Aufziehvogel, @JunchaoGu)","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/27341064/how-do-i-fix-importerror-cannot-import-name-incompleteread","votes":287,"created_at":"2026-04-19T04:41:35.780991+00:00","updated_at":"2026-04-19T04:51:47.829934+00:00"}