Win8,ANACONDA3(64-bit),Python3.6.2。ANACONDA Prompt中不能用pip命令安装包,并且是在安装了TensorFlow后才发生的。
报错如下:
F:\360Downloads>pip install --upgrade pip Exception: Traceback (most recent call last): File "E:\tools\anaconda\py3\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(options, args) File "E:\tools\anaconda\py3\lib\site-packages\pip\commands\install.py", line 335, in run wb.build(autobuilding=True) File "E:\tools\anaconda\py3\lib\site-packages\pip\wheel.py", line 749, in build self.requirement_set.prepare_files(self.finder) File "E:\tools\anaconda\py3\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "E:\tools\anaconda\py3\lib\site-packages\pip\req\req_set.py", line 487, in _prepare_file req_to_install, finder) File "E:\tools\anaconda\py3\lib\site-packages\pip\req\req_set.py", line 428, in _check_skip_instal led req_to_install, upgrade_allowed) File "E:\tools\anaconda\py3\lib\site-packages\pip\index.py", line 465, in find_requirement all_candidates = self.find_all_candidates(req.name) File "E:\tools\anaconda\py3\lib\site-packages\pip\index.py", line 423, in find_all_candidates for page in self._get_pages(url_locations, project_name): File "E:\tools\anaconda\py3\lib\site-packages\pip\index.py", line 568, in _get_pages page = self._get_page(location) File "E:\tools\anaconda\py3\lib\site-packages\pip\index.py", line 683, in _get_page return HTMLPage.get_page(link, session=self.session) File "E:\tools\anaconda\py3\lib\site-packages\pip\index.py", line 811, in get_page inst = cls(resp.content, resp.url, resp.headers) File "E:\tools\anaconda\py3\lib\site-packages\pip\index.py", line 731, in __init__ namespaceHTMLElements=False, TypeError: parse() got an unexpected keyword argument 'transport_encoding'
解决方案:
1.conda install -c anaconda html5lib
如下场景
F:\360Downloads>conda install -c anaconda html5lib Fetching package metadata ............... Solving package specifications: . Package plan for installation in environment E:\tools\anaconda\py3: The following packages will be UPDATED: anaconda: 5.0.0-py36hea9b2fc_0 --> custom-py36h363777c_0 anaconda bzip2: 1.0.6-vc14hdec8e7a_1 --> 1.0.6-vc14_3 anaconda [vc14] conda: 4.3.27-py36hcbae3bd_0 --> 4.4.8-py36_0 anaconda html5lib: 0.999999999-py36ha09b1f3_0 --> 1.0.1-py36h047fa9f_0 anaconda libpng: 1.6.32-vc14hce43e6c_2 --> 1.6.32-vc14h5163883_3 anaconda [vc14] openssl: 1.0.2l-vc14hcac20b0_2 --> 1.0.2l-vc14hf4c37d5_5 anaconda [vc14] pycosat: 0.6.2-py36hf17546d_1 --> 0.6.3-py36h413d8a4_0 anaconda The following packages will be SUPERSEDED by a higher-priority channel: conda-env: 2.6.0-h36134e3_1 --> 2.6.0-h36134e3_1 anaconda curl: 7.55.1-vc14hdaba4a4_3 --> 7.55.1-vc14hdaba4a4_3 anaconda [vc14] freetype: 2.8-vc14h17c9bdf_0 --> 2.8-vc14h17c9bdf_0 anaconda [vc14] hdf5: 1.10.1-vc14hb361328_0 --> 1.10.1-vc14hb361328_0 anaconda [vc14] icu: 58.2-vc14hc45fdbb_0 --> 58.2-vc14hc45fdbb_0 anaconda [vc14] jpeg: 9b-vc14h4d7706e_1 --> 9b-vc14h4d7706e_1 anaconda [vc14] libiconv: 1.15-vc14h29686d3_5 --> 1.15-vc14h29686d3_5 anaconda [vc14] libssh2: 1.8.0-vc14hcf584a9_2 --> 1.8.0-vc14hcf584a9_2 anaconda [vc14] libtiff: 4.0.8-vc14h04e2a1e_10 --> 4.0.8-vc14h04e2a1e_10 anaconda [vc14] libxml2: 2.9.4-vc14h8fd0f11_5 --> 2.9.4-vc14h8fd0f11_5 anaconda [vc14] libxslt: 1.1.29-vc14hf85b8d4_5 --> 1.1.29-vc14hf85b8d4_5 anaconda [vc14] qt: 5.6.2-vc14h6f8c307_12 --> 5.6.2-vc14h6f8c307_12 anaconda [vc14] sqlite: 3.20.1-vc14h7ce8c62_1 --> 3.20.1-vc14h7ce8c62_1 anaconda [vc14] tk: 8.6.7-vc14hb68737d_1 --> 8.6.7-vc14hb68737d_1 anaconda [vc14] yaml: 0.1.7-vc14hb31d195_1 --> 0.1.7-vc14hb31d195_1 anaconda [vc14] zlib: 1.2.11-vc14h1cdd9ab_1 --> 1.2.11-vc14h1cdd9ab_1 anaconda [vc14] Proceed ([y]/n)"background-color: #ccffcc">2.更新:conda install pip以上这篇完美解决安装完tensorflow后pip无法使用的问题就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
白云城资源网 Copyright www.dyhadc.com
暂无“完美解决安装完tensorflow后pip无法使用的问题”评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
2025年01月11日
2025年01月11日
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]