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

前端 未结 16 1300
暖寄归人
暖寄归人 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 19:15

    I tried with every answer avobe, but couldn't make it.

    Did this and worked

    sudo apt-get purge python-virtualenv
    sudo pip install pip -U
    

    After that I just installed virtualenv with pip

    sudo pip install virtualenv
    

    I built the virtualenv that I was working on and the package was installed easily. Get into the virtualenv by using source /bin/activate and try to install your package, for example:

    pip install terminado
    

    It worked for me, although I was using python2.7 not python3

提交回复
热议问题