pip throws TypeError: parse() got an unexpected keyword argument 'transport_encoding' when trying to install new packages

前端 未结 7 763
甜味超标
甜味超标 2020-11-30 01:46

I am using the latest version of Anaconda3. I just installed it and I am trying to download some packages. I am using the Anaconda Prompt. While trying to use pip to do anyt

7条回答
  •  半阙折子戏
    2020-11-30 02:08

    Here was the fix for me:

    cd /usr/share/python-wheels/
    

    Contents of dir:

    -rwxrwxrwx   1 www-data www-data 493905 Jul 22  2015 html5lib-0.999-py2.py3-none-any.whl
    -rw-r--r--   1 root     root     112620 Apr  3  2019 html5lib-0.999999999-py2.py3-none-any.whl
    

    Run:

    mv html5lib-0.999-py2.py3-none-any.whl html5lib-0.999-py2.py3-none-any.whl.bak
    

    pip3 works fine after. Was loading the old 0.999 version.

提交回复
热议问题