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 mainstatus = self.run(options, args)File "C:\ProgramData\Anaconda3\lib\site-packages\pip\commands\install.py", line 335, in runwb.build(autobuilding=True)File "C:\ProgramData\Anaconda3\lib\site-packages\pip\wheel.py", line 749, in buildself.requirement_set.prepare_files(self.finder)File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_set.py", line 380, in prepare_filesignore_dependencies=self.ignore_dependencies))File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_set.py", line 554, in _prepare_filerequire_hashesFile "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_install.py", line 278, in populate_linkself.link = finder.find_requirement(self, upgrade)File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 465, in find_requirementall_candidates = self.find_all_candidates(req.name)File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 423, in find_all_candidatesfor page in self._get_pages(url_locations, project_name):File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 568, in _get_pagespage = self._get_page(location)File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 683, in _get_pagereturn HTMLPage.get_page(link, session=self.session)File "C:\ProgramData\Anaconda3\lib\site-packages\pip\index.py", line 811, in get_pageinst = 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

pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'相关推荐

  1. parse() got an unexpected keyword argument 'transport_encoding'

    pip install Keras 报错: parse() got an unexpected keyword argument 'transport_encoding' 解决:conda insta ...

  2. python中错误TypeError: __init__() got an unexpected keyword argument 'shape'

    学习TensorFlow遇到的问题: 1 如何在不同计算图上定义和使用变量 书上代码: import tensorflow as tfg1 = tf.Graph() with g1.as_defaul ...

  3. anaconda下安装新包一直报错(‘parse() got an unexpected keyword argument 'transport_encoding'’)...

    pip没有更新 解决方案:在prompt上输入 " conda install pip " 转载于:https://www.cnblogs.com/Li---Chao/p/8641 ...

  4. TensorFlow错误:TypeError: __init__() got an unexpected keyword argument 'serialized_options'

    用了好久的时间搞定了机器学习,今天想搞一搞深度学习,用TensorFlow的过程中却遇到了错误: Traceback (most recent call last):File "F:/编程/ ...

  5. 成功解决TypeError: __init__() got an unexpected keyword argument 'serialized_options'

    成功解决TypeError: __init__() got an unexpected keyword argument 'serialized_options' 目录 解决问题 解决思路 解决方法 ...

  6. import tensorflow 出错TypeError: init() got an unexpected keyword argument 'serialized_options'

    博主在import tensorflow 的时候,出现如下错误: >>> import tensorflow as tf Traceback (most recent call la ...

  7. 【异常处理】TypeError: __new__() got an unexpected keyword argument ‘serialized_options‘

    执行pointpillars的模型转时报了一个关于protobuf的错误: nvidia@nvidia-desktop:~/hive_pointpillars/second/pytorch$ pyth ...

  8. TypeError: __init__() got an unexpected keyword argument #34serialized_options #34

    TypeError: __init__() got an unexpected keyword argument 'serialized_options' TypeError: __init__() ...

  9. 成功解决TypeError: read_excel() got an unexpected keyword argument ‘parse_cols or ‘sheetname‘

    成功解决TypeError: read_excel() got an unexpected keyword argument 'parse_cols' TypeError: read_excel() ...

最新文章

  1. python爬虫日志(9)爬取代理
  2. nyoj 712 探寻宝藏
  3. Tomcat监控xml ,当修改xml后,不用重启tomcat
  4. 【spring boot】8.spring boot的日志框架logback使用
  5. afreecatv 回放下载_行车记录仪怎么看回放?行车记录仪停车后能自动录像吗
  6. python和java语言的区别
  7. mybatis 配置文件中,collection 和 association 的对应关系
  8. 没有Where条件下group by走索引
  9. Snagit 2021 for mac(强大的屏幕截图工具)
  10. 完全分布式安装Hadoop,Hive,Hbase,Hwi,Zookeeper
  11. jad环境变量配置_Jad_反编译Class文件
  12. Linux档案与目录管理
  13. 判断一颗二叉树是否为二叉平衡树 python 代码
  14. 建立U盘免疫病毒文件
  15. c语言/abs()函数和fabs ()函数
  16. 固定连接修改后无觅推荐结果问题修改
  17. win 10 设置静态ip 子网前缀长度
  18. android 4.4 设置谷歌拼音输入法为默认输入法,android4.4修改出厂默认输入法
  19. 刺激战场测试fps软件,腾讯手游助手玩刺激战场怎样设置显示帧数?
  20. vue3跨组件传值(爷孙组件传值)

热门文章

  1. iOS Sharing #02 | 2019-03-30
  2. Java并发编程的艺术(一)——并发编程需要注意的问题
  3. 校讯通近期爆发短信诈骗:取消不可能 那如何规范
  4. DBD::mysql::db do failed: Table cl_access was locked with a READ lock and can't be updated
  5. Qt窗口屏幕居中显示 (ZT)
  6. ZOJ 3702 Gibonacci number(数学推导题)
  7. Codeforces Round #570 (Div. 3)
  8. redis伪集群脚本
  9. ActiveMQ集群
  10. 巧用css text-indent减小中文标点符号的占位大小