On my Ubuntu 15.04 system, the system-supplied pip (`apt install python-
pip`, v1.5.6) works correctly with the system-supplied requests (python-
requests -- v2.4.3 -- it's a dependency of python-pip).

Then after installing a package with pip (in my case `pip install --user
jira`) it installed a newer version of requests (v2.7.0) into
~/.local/lib/python2.7, presumably because the package I installed
specified that it needed a newer version of requests. This causes pip to
break with:

    from requests.compat import IncompleteRead
    ImportError: cannot import name IncompleteRead

My solution was to delete the offending requests library, then upgrade
pip with `sudo pip install --upgrade pip`, and then reinstalling the pip
packages I wanted.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1306991

Title:
  pip stops with ImportError for request-Modul

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1306991/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to