请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

下载tensorflow时报错

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
这个是我在anaconda中下载tensorflow时报错了,老师我要怎么解决啊

正在回答 回答被采纳积分+3

1回答

会写代码的好厨师 2020-04-04 00:05:00

可以通过添加第三方软件源的方式来解决这个问题,就是在命令后面加-i 加相应的源的地址。比如可以用阿里云的源

0 回复 有任何疑惑可以回复我~
  • 提问者 慕丝7534189 #1
    比如我在anaconda输入conda install tensorflow。后面就显示An HTTP error occurred when trying to retrieve this URL.
    HTTP errors are often intermittent, and a simple retry will get you on your way.然后百度说是因为外网的原因,下载的话太慢,说是用啥清华的镜像。可是没有详细的步骤。这个导入tensorflow把我卡住了
    回复 有任何疑惑可以回复我~ 2020-04-04 00:16:06
  • 提问者 慕丝7534189 #2
    An HTTP error occurred when trying to retrieve this URL.
    HTTP errors are often intermittent, and a simple retry will get you on your way.
    
    CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/libmklml-2019.0.5-0.conda>
    Elapsed: -
    
    An HTTP error occurred when trying to retrieve this URL.
    HTTP errors are often intermittent, and a simple retry will get you on your way.
    
    CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/tensorflow-base-2.1.0-mkl_py37h230818c_0.conda>
    Elapsed: -
    
    An HTTP error occurred when trying to retrieve this URL.
    HTTP errors are often intermittent, and a simple retry will get you on your way.这个是报错的
    回复 有任何疑惑可以回复我~ 2020-04-04 00:18:07
  • "然后百度说是因为外网的原因,下载的话太慢,说是用啥清华的镜像"
    要学会善用百度。其实这里已经有答案了,只需要再百度,如何再conda安装tensorflow时添加清华的源,答案立马就出来了。
    然后你还可以百度,conda安装tensorflow 添加第三方源,也会有相关的答案的。
    比如这里:https://www.jianshu.com/p/e6a9aa0e671b
    回复 有任何疑惑可以回复我~ 2020-04-04 00:24:04
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号