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

前端 未结 16 1298
暖寄归人
暖寄归人 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:06

    The problem is the Python module requests. It can be fixed by

    $ sudo apt-get purge python-requests
    [now requests and pip gets deinstalled]
    $ sudo apt-get install python-requests python-pip
    

    If you have this problem with Python 3, you have to write python3 instead of python.

提交回复
热议问题