关闭

pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'

7250人阅读 评论(28) 收藏 举报
分类:

Win10,ANACONDA3(64-bit),Python3.6.2。ANACONDA Prompt中不能用pip命令安装包,并且是在安装了TensorFlow后才发生的。报错如下:

Exception:
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\commands\install.py", line 335, in run
    wb.build(autobuilding=True)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_set.py", line 554, in _prepare_file
    require_hashes
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_install.py", line 278, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 465, in find_requirement
    all_candidates = self.find_all_candidates(req.name)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 423, in find_all_candidates
    for page in self._get_pages(url_locations, project_name):
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 568, in _get_pages
    page = self._get_page(location)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 683, in _get_page
    return HTMLPage.get_page(link, session=self.session)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 811, in get_page
    inst = cls(resp.content, resp.url, resp.headers)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 731, in __init__
    namespaceHTMLElements=False,
TypeError: parse() got an unexpected keyword argument 'transport_encoding' 

解决办法:输入命令

conda install -c anaconda html5lib

会看到一系列更新的结果,然后再次使用pip安装包,发现可以成功安装


-------------------------------------------------------------------------------------------------------------------

更新

以上方法不成功的话,可以尝试输入命令:

conda install pip


28
0
查看评论
发表评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场

parse() got an unexpected keyword argument 'transport_encoding'

parse() got an unexpected keyword argument 'transport_encoding'
  • jacke121
  • jacke121
  • 2017-10-09 23:34
  • 4400

pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'

解决TypeError: parse() got an unexpected keyword argument 'transport_encoding'的错误
  • qq_24384179
  • qq_24384179
  • 2017-11-06 17:11
  • 1306

tweepy安装报错

pip install tweepy Downloading/unpacking tweepy   Downloading tweepy-3.5.0.tar.gz   Running setup...
  • poson
  • poson
  • 2015-11-23 16:34
  • 2923

TypeError: parse() got an unexpected keyword argument 'transport_encoding'

环境:win10, Anaconda3(64bit), python3.6.3问题:pip安装keras时出现报错:TypeError: parse() got an unexpected keywo...
  • kicilove
  • kicilove
  • 2017-12-08 16:27
  • 174

pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'

Win10,ANACONDA3(64-bit),Python3.6.2。ANACONDA Prompt中不能用pip命令安装包,并且是在安装了TensorFlow后才发生的。报错如下: ...
  • gqixf
  • gqixf
  • 2017-11-27 15:23
  • 361

pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'

在Anaconda Prompt中使用pip install命令时出现 TypeError: parse() got an unexpected keyword argument 'transpor...
  • Maverick_7
  • Maverick_7
  • 2017-12-12 12:38
  • 106

Evaluation of Deep Learning Toolkits

找不到其他的markdown编辑器了,写毕业论文用,先放着吧 原文地址:https://github.com/zer0n/deepframeworksEvaluation of Deep Learn...
  • Cheese_pop
  • Cheese_pop
  • 2016-05-13 17:41
  • 614

解决anaconda pip,parse() got an unexpected keyword argument 'transport_encoding'错误

听朋友说微软新开源的LightGBM可以直接用anaconda的pip安装,于是尝试了一下,环境为windows7,python3.6,可是在安转的时候失败了,提示parse() got an une...
  • slibra_L
  • slibra_L
  • 2017-12-16 12:02
  • 131

全网最全的Windows下Anaconda2 / Anaconda3里正确下载安装OpenCV(离线方式和在线方式)(图文详解)

不多说,直接上干货!         说明:     Anaconda2-5.0.0-Windows-x86_64.exe安装下来,默认的Python2.7     Anaconda3-4...
  • anshiquanshu
  • anshiquanshu
  • 2017-12-19 16:57
  • 294

Android-Lint Issues

田海立2012-10-02 这里的Android-Lint所检查的问题列表是从AndroidSDK Tools r20.0.3 (ADT v20.0.3)中得来的默认的,执行下列指令即可得到:$lin...
  • thl789
  • thl789
  • 2012-10-02 22:09
  • 13958
    个人资料
    • 访问:74851次
    • 积分:1554
    • 等级:
    • 排名:千里之外
    • 原创:72篇
    • 转载:5篇
    • 译文:3篇
    • 评论:58条
    文章分类
    最新评论