Install.keras () in RStudio does not work with HTTP connection error

I try to install and run keras in RStudio (Windows) in vain. I installed the keras package using the regular "keras" package (did not use github) I installed the latest python (3.6) and Anaconda. then i use

> library(keras)
> install.keras()

and I get this error:

Creating an r-tensorflow condak environment for installing TensorFlow ... Retrieving package metadata ... CondaHTTPError: HTTP 000 CONNECTION Failure for the URL https://repo.continuum.io/pkgs/main/win-64/repodata.json. bz2 Expired: -

An HTTP error occurred while trying to get this URL. HTTP errors are often intermittent, and a simple repeat will force you along the way. ConnectTimeout (MaxRetryError ("HTTPSConnectionPool (host = 'repo.continuum.io', port = 443): The maximum number of attempts was exceeded using the URL: / pkgs / main / win -64 / repodata.json.bz2 (caused by ConnectTimeoutError (, ' Suspended connection to repo.continuum.io. (Connection timeout = 9.15) ')) ",),)

Error: Error 1 occurred that created the conda r-tensorflow environment In addition: warning message: start 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") 

:

: -: 10015

. , zip github zip . install.packages( "keras" ), . , ( )


UPDATE: , python/anaconda.

2: , https_proxy .

0
5

, . , RStudio - , .

:

Rstudio → → → → " HTTP" " Internet Explorer librayr/proxy HTTP" p >

, RStudio:

> file.edit('~/.Renviron')

. ( ). :

http_proxy = http://myusename:password@proxy.server.com:port/

https_proxy = http://myusename:password@proxy.server.com:port/

( : https_proxy, http_proxy https_proxy. . : . . , .

3: .Renviron RStudio.

- RStudio , :

> Sys.getenv("http_proxy")
> Sys.getenv("https_proxy")

, , - RStudio, .Renviron. , file.edit('~/.Renviron') 2, , .

, install.keras(), , Tensorflow. , 1, keras , shadoworflow. , keras, tensorflow . , .

+4

Anaconda3 Anaconda2 ( Python 2.7) : https://www.anaconda.com/download/

+1

, , ? , ?

, Seeker85

0

@RobertMolnar: Anaconda 3 2, . ( CLI) ? , user.name Windows , Conda Anaconda, , ( python 3 ).

0

, , ? , ?

, Seeker85

-1

All Articles