错误解决:parse() got an unexpected keyword argument 'transport_encoding'
来源:互联网 发布:淘宝评论福利在哪里看 编辑:程序博客网 时间:2024/05/21 01:28
使用pip安装Python包时,遇到这样的问题:
Exception:Traceback (most recent call last): File "C:\Anaconda2\envs\python35\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(options, args) File "C:\Anaconda2\envs\python35\lib\site-packages\pip\commands\install.py", line 335, in run wb.build(autobuilding=True) File "C:\Anaconda2\envs\python35\lib\site-packages\pip\wheel.py", line 749, in build self.requirement_set.prepare_files(self.finder) File "C:\Anaconda2\envs\python35\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "C:\Anaconda2\envs\python35\lib\site-packages\pip\req\req_set.py", line 487, in _prepare_file req_to_install, finder) File "C:\Anaconda2\envs\python35\lib\site-packages\pip\req\req_set.py", line 428, in _check_skip_installed req_to_install, upgrade_allowed) File "C:\Anaconda2\envs\python35\lib\site-packages\pip\index.py", line 465, in find_requirement all_candidates = self.find_all_candidates(req.name) File "C:\Anaconda2\envs\python35\lib\site-packages\pip\index.py", line 423, in find_all_candidates for page in self._get_pages(url_locations, project_name): File "C:\Anaconda2\envs\python35\lib\site-packages\pip\index.py", line 568, in _get_pages page = self._get_page(location) File "C:\Anaconda2\envs\python35\lib\site-packages\pip\index.py", line 683, in _get_page return HTMLPage.get_page(link, session=self.session) File "C:\Anaconda2\envs\python35\lib\site-packages\pip\index.py", line 811, in get_page inst = cls(resp.content, resp.url, resp.headers) File "C:\Anaconda2\envs\python35\lib\site-packages\pip\index.py", line 731, in __init__ namespaceHTMLElements=False,TypeError: parse() got an unexpected keyword argument 'transport_encoding'
找了挺久的解决方案,比如:
conda install pip
conda install -c anaconda html5lib
python -m pip install -U pip
这些方法在我个人的环境上都没有解决问题。
仔细的看了抛出的异常栈,是函数入参中多了个参数’transport_encoding’, 所以找到该文件,注释掉该参数,继续安装Python包,通行无阻,问题解决。记录一下。
阅读全文
0 0
- 错误解决:parse() got an unexpected keyword argument 'transport_encoding'
- parse() got an unexpected keyword argument 'transport_encoding'
- pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- 解决anaconda pip,parse() got an unexpected keyword argument 'transport_encoding'错误
- TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- django got an unexpected keyword argument maxlength
- __init__() got an unexpected keyword argument 'mimetype'
- django-got an unexpected keyword argument ‘maxlength’
- pivot_table() got an unexpected keyword argument 'rows'
- render_to_response() got an unexpected keyword argument 'context_instance'
- TypeError: __init__() got an unexpected keyword argument ‘maxlength’
- TypeError: __init__() got an unexpected keyword argument ‘maxlength’
- TypeError: __init__() got an unexpected keyword argument ‘maxlength’
- __init__() got an unexpected keyword argument 'context processor'解决方法
- 深度学习与NLP简单应用
- 尺取法
- docker学习笔记
- 软工之模型总结
- spring(五)AOP注解学习
- 错误解决:parse() got an unexpected keyword argument 'transport_encoding'
- Top-Down design
- 设计模式—单例模式
- [转载]好莱坞故事创意手册!
- 数据库查询LIKE %XX%性能问题
- Android学习笔记19-内存泄漏分析
- GUI之布局管理器(1)
- linux vim 编辑器之多文件多窗口编辑
- Java构造器