【发布时间】:2018-02-28 19:30:50
【问题描述】:
在尝试按照在 Rstudio 链接 https://keras.rstudio.com/index.html 上安装 Keras 和 TensorFlow 的说明时,我收到以下错误。这是一台运行 Windows 7 的工作计算机。我不熟悉 python,但我相信我已经正确安装了 python 3.6(我能够在 Spyder IDE 中运行简单的 python 代码)。提前感谢您提供有关如何使其正常工作的任何建议。
> install_keras()
Creating r-tensorflow conda environment for TensorFlow installation...
Solving environment: ...working... failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url
<https://repo.continuum.io/pkgs/main/noarch/repodata.json.bz2>
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.
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', port=443): Max retries exceeded with url: /pkgs/main/noarch/repodata.json.bz2 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000000000474D860>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))",),)
Error: Error 1 occurred creating conda environment r-tensorflow
In addition: Warning message:
running command '"C:\Users\...\...\Local\CONTIN~1\ANACON~1\Scripts\conda.exe" "create" "--yes" "--name" "r-tensorflow" "python=3.6"' had status 1
【问题讨论】:
-
我自己试过了,效果很好。从错误消息来看,这可能是 Internet 连接问题。多试几次。
-
您可能需要让您的 IT 人员解决防火墙或其他障碍。
-
谢谢。我又试了几次,但它仍然给出同样的错误。我的互联网正在运行,但也许他们的一些设置是我需要更改的?至于 IT 方面的帮助,我也问过他们,但他们不熟悉 R、python、keras 等,所以很难。
-
它确实说端口 443 被阻止,所以我想知道这是否是问题所在?他们是在不使用此端口的情况下安装 keras 和 tensorflow 的方法吗?谢谢。
-
"443 端口被阻塞" 这不是你的问题。端口 443 分配给服务器上的 incoming HTTPS 请求,但您看到的错误与无法使用 its 端口 443 连接到远程服务器有关HTTPS。在 Mac 或 Linux 上,当
openssl或RCurl未安装/更新时会出现类似的情况。但是您使用的是 Windows,所以...不确定。
标签: python r windows tensorflow keras