我一直在试图安装和RStudio(Windows)中空跑keras。 我安装使用普通包“keras” keras包 (没有使用github上) 我已经安装了最新的Python(3.6)和蟒蛇。 然后我用install.keras()在RStudio失败,HTTP连接错误
> library(keras)
> install.keras()
和我得到这个错误:
Creating r-tensorflow conda environment for TensorFlow installation... Fetching package metadata ... CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.continuum.io/pkgs/main/win-64/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. ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', port=443): Max retries exceeded with url: /pkgs/main/win-64/repodata.json.bz2 (Caused by ConnectTimeoutError(, 'Connection to repo.continuum.io timed out. (connect timeout=9.15)'))",),)
Error: Error 1 occurred creating conda environment r-tensorflow In addition: Warning message: running command '"C:\PROGRA~3\ANACON~1\Scripts\conda.exe" "create" "--yes" "--name" "r-tensorflow" "python=3.6"' had status 1
我抬头到处在网络上,并不能找出如何安装keras和tensorflow正常。使用最新版本的R(3.4.2) 每个方法都会失败。 只是为了增加痛苦,我也试着:
> devtools::install_github("rstudio/keras")
和我得到这个错误:
Installation failed: Timeout was reached: Connection timed out after 10015 milliseconds
我没有任何身份验证代理的后面。所以,在多次失败后,我只是从github上下载了zip文件,并使用zip文件手动安装它。 我也试过install.packages(“keras”),并没有给我任何错误。 当我调用库我没有得到任何错误(如上图所示)
更新:我能不已经安装了Python /蟒蛇另一台计算机上很容易安装和使用的包已经。
更新2:我的代理不需要身份验证,也没有https_proxy无论是。