2017-11-01 2 views
0

내 사무실/직장 노트북을 사용할 때 https://keras.rstudio.com/ 지침에 따라 Keras를 설치하려고합니다.Anaconda 및 RStudio의 install_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. 
ProxyError(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', 
port=443): Max retries exceeded with url: /pkgs/main/win-6  
/repodata.json.bz2 (Caused by ProxyError('Cannot connect to proxy.', 
NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 
0x000001ACD38FB780>: Failed to establish a new connection: [Errno 11001] 
getaddrinfo failed',)))",),) 

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 

을 그리고 아나콘다에 대해 뭔가를 말한다. 그래서 나는이에서 아나콘다 짐승 전체를 정성스럽게 설치합니다. 내가 Jeroen's libcurl suggestion을 검토

Using r-tensorflow conda environment for TensorFlow installation 
Determining latest release of TensorFlow...Error in 
open.connection(con, "rb") : 
Unsupported proxy 'https://proxy-server.mycompanyname.com:8080', libcurl 
is built without the HTTPS-proxy support. 

다음 응답 산출 :

curl::ie_proxy_info() 

$AutoDetect 
[1] FALSE 

$AutoConfigUrl 
[1] "http://mcd-server/mcd/proxy.pac" 

$Proxy 
NULL 

$ProxyBypass 
NULL 

curl::ie_get_proxy_for_url() 
[1] "proxy-server:8080" 
을 내가 install_keras()을하려고 할 때

는 지금은 프록시에 대해 새로운 오류 메시지가

그래서 나는 나에게 좋은 관계가있는 것 같다. RStudio를 통한 인터넷 연결은 가능하지만 Anaconda의 소프트웨어 사용은 그렇지 않습니다.

내가 이것을 사용하여 좋은 인터넷 연결이 있다는 것을 확인했다 :

httr::BROWSE("https://www.ibm.com") 

그 libcurl에 분명히, HTTPS 프록시 지원없이 내장되어 나타납니다.

제안 사항?

답변

0

해결!

1 단계 : Anaconda는 .condarc이라는 이름의 새로운 파일과 함께 프록시 정보를 추가하여 this answer과 정확하게 일치하도록 인터넷에 액세스 할 수 있습니다. Anaconda Prompt 응용 프로그램에 conda update conda을 입력하여 문제가 없는지 확인할 수 있습니다.

2) 2 단계 : 윈도우 10)에 대한 C:\Users\USERNAME\Documents에서 발견 된이 내 경우에는합니다 (.Renviron 파일에이 두 행을 추가하여 인터넷에 접속하는 R과 RStudio을 허용 :

http_proxy=http://proxy-server:8080 
https_proxy=http://proxy-server:8080 

이제 이것을 실행하여 Keras를 설치할 수 있습니다.

library(keras) 
install_keras()