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

前端 未结 7 743
甜味超标
甜味超标 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:01
    pip3 install -U html5lib=="0.9999999"
    

    worked for me

    here's the html5lib bug on github

    from: https://stackoverflow.com/a/39087283

    0 讨论(0)
  • 2020-11-30 02:08

    I had the same problem and what worked for me was updating pip with conda:

    conda install pip

    It changed my pip from 9.0.1-py36hadba87b_3 to 9.0.1-py36h226ae91_4 and solved issue.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-11-30 02:09

    download https://github.com/html5lib/html5lib-python/tree/master/html5lib and overwrite all the files within html5lib folder in your tensorflow environment "envs\tensorflow\Lib\site-packages\html5lib" Then you should be able to run any "pip install" commands after that

    0 讨论(0)
  • 2020-11-30 02:10

    I was getting this exact error installing SerpentAI. All I did to fix it was run activate serpent in conda prompt and then I ran the command again. Not sure if it's applicable to your situation, but they seem close enough that it might.

    EDIT - if the above didn't work, comment out this line:

    That worked perfectly for me. (this took a helpful member of our community 8 hours to debug)

    0 讨论(0)
  • 2020-11-30 02:16

    This worked for me:

    python -m pip install --upgrade tensorflow

    0 讨论(0)
提交回复
热议问题