How do I fix 'ImportError: cannot import name IncompleteRead'?

前端 未结 16 1165
暖寄归人
暖寄归人 2020-11-28 18:22

When I try to install anything with pip or pip3, I get:

$ sudo pip3 install python3-tk
Tra         


        
相关标签:
16条回答
  • 2020-11-28 18:56

    Or you can remove all requests.

    For example:

    • rm -rf /usr/local/lib/python2.7/dist-packages/requests*
    0 讨论(0)
  • 2020-11-28 18:56

    Simply running easy_install -U pip resolved my problem.

    0 讨论(0)
  • 2020-11-28 18:57

    For fixing pip3 (worked on Ubuntu 14.10):

    easy_install3 -U pip
    
    0 讨论(0)
  • 2020-11-28 18:57

    Check if have a python interpreter alive in any of the terminal windows. If so kill it and try sudo pip which worked for me.

    0 讨论(0)
  • 2020-11-28 19:00

    My version of pip on ubuntu suggests:

      pip install --upgrade pip
    
    0 讨论(0)
  • 2020-11-28 19:03
    1. sudo apt-get remove python-pip
    2. sudo easy_install requests==2.3.0
    3. sudo apt-get install python-pip
    0 讨论(0)
提交回复
热议问题