I want to do time series recurrent neural network in R, but for this I trying to install tensorflow and keras for this
library(tensorflow)
install_tensorflow()
library(keras)
install_keras()
calling library was ok but when everytime I enter install_tensorflow() or install_keras() below error appeared. I turned off my fire wall and I am not using VPN. I install python in my pc, my pc is windows10 64bit
C:\Users\Administrator\OneDrive\Documents>CALL "C:\Users\Administrator\AppData\Local\r-miniconda\condabin\activate.bat" "C:\Users\Administrator\AppData\Local\r-miniconda\envs\r-reticulate"
C:\Users\Administrator\OneDrive\Documents>conda.bat activate "C:\Users\Administrator\AppData\Local\r-miniconda\envs\r-reticulate"
(r-reticulate) C:\Users\Administrator\OneDrive\Documents>"C:/Users/Administrator/AppData/Local/r-miniconda/envs/r-reticulate/python.exe" -m pip install --upgrade --ignore-installed "tensorflow==2.8.*"
Collecting tensorflow==2.8.*
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000021A988BBDC0>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/17/5b/dac6e0607e4186b9e157597cd96d945aa769c60ef9f9f1b7ddc174f39332/tensorflow-2.8.0-cp38-cp38-win_amd64.whl
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000021A988BBFA0>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/17/5b/dac6e0607e4186b9e157597cd96d945aa769c60ef9f9f1b7ddc174f39332/tensorflow-2.8.0-cp38-cp38-win_amd64.whl
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000021A987511F0>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/17/5b/dac6e0607e4186b9e157597cd96d945aa769c60ef9f9f1b7ddc174f39332/tensorflow-2.8.0-cp38-cp38-win_amd64.whl
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000021A98751310>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/17/5b/dac6e0607e4186b9e157597cd96d945aa769c60ef9f9f1b7ddc174f39332/tensorflow-2.8.0-cp38-cp38-win_amd64.whl
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000021A98751490>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/17/5b/dac6e0607e4186b9e157597cd96d945aa769c60ef9f9f1b7ddc174f39332/tensorflow-2.8.0-cp38-cp38-win_amd64.whl
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/17/5b/dac6e0607e4186b9e157597cd96d945aa769c60ef9f9f1b7ddc174f39332/tensorflow-2.8.0-cp38-cp38-win_amd64.whl (Caused by ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000021A98751610>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)'))
Error: Error installing package(s): "\"tensorflow==2.8.*\""
In addition: Warning message:
In shell(fi, intern = intern) :
'C:\Users\ADMINI~1\AppData\Local\Temp\RtmpCsn3wO\file38d45044492f.bat' execution failed with error code 1
can anyone help me with the installation?
Related
I open RStudio and type
install.packages('rJava')
and it works fine.
Then I load package which has renv initialized and try the same command and it returns:
Error: package 'rJava' is not available
In addition: Warning messages:
1: curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
2: curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
>
What might be the reason?
Update
I decided to try something radical:
remove.packages('renv')
it and worked
but then I restarted R sessions and got back
# Bootstrapping renv 0.13.1 --------------------------------------------------
* Downloading renv 0.13.1 ... OK
* Installing renv 0.13.1 ... Done!
* Successfully installed and loaded renv 0.13.1.
Is there way to get rid of renv?
Another update:
I was able to deactivate renv with renv::deactive()
library(devtools)
install_github('taiyun/recharts')
but R gives me error as follow:
Installation failed: schannel: failed to receive handshake, SSL/TLS connection failed
I don't know why.I think it maybe the network is restriction.
I have just updated my R 3.4.0 to R 3.4.1 and my package installation has started timing out.
It looks like R is having trouble with accessing URLs:
install.packages("tidyverse")
Warning in install.packages :
InternetOpenUrl failed: 'The operation timed out'
Warning in install.packages :
InternetOpenUrl failed: 'The operation timed out'
Warning in install.packages :
InternetOpenUrl failed: 'The operation timed out'
I tried different CRAN mirrors, but still getting the same issue.
Any thoughts around this are much appreciated.
I get this error
Installing package into ‘C:/Users/XXXXX/Downloads/RPackages’
(as ‘lib’ is unspecified)
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4/PACKAGES'
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/shinythemes_1.1.1.zip'
Content type 'application/zip' length 999652 bytes (976 KB)
downloaded 976 KB
That is, Rstudio keeps trying to connect to other URLs and only succeeds when it connects to https://cran.rstudio.com/bin/windows/contrib/3.4/shinythemes_1.1.1.zip
Why is this the case?
I set my GLOBAL (CDN) Rstudio, Secure HTTP method and using Internet Explorer Proxy Settings for HTTP method.
It seems an index server crashed. You should use RGUI instead of RStudio to install package(s), set option firstly.
I have R and Rstudio installed on an Ubuntu server (14), when I tried to install packages, I get these errors:
>install.packages("nnet")
Installing package into ‘/home/zhge/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
--2015-09-08 02:43:31-- https://cran.rstudio.com/src/contrib/nnet_7.3-11.tar.gz Resolving
cran.rstudio.com (cran.rstudio.com)... 54.230.140.42 Connecting to
cran.rstudio.com (cran.rstudio.com)|54.230.140.42|:443... connected.
HTTP request sent, awaiting response... 200 OK Length: 28455 (28K)
[application/x-gzip] Saving to:
‘/tmp/RtmpBT7yHE/downloaded_packages/nnet_7.3-11.tar.gz’
0K .......... .......... ....... 100% 1.20M=0.02s
2015-09-08 02:43:31 (1.20 MB/s) -
‘/tmp/RtmpBT7yHE/downloaded_packages/nnet_7.3-11.tar.gz’ saved
[28455/28455]
/usr/lib/R/bin/R: line 140: /usr/lib/R/etc/ldpaths: Permission denied
/usr/lib/R/bin/R: line 236: /usr/lib/R/etc/ldpaths: Permission denied
Error in file(con, "r") : cannot open the connection Calls:
<Anonymous> -> sub -> grep -> readLines -> file In addition: Warning
message: In file(con, "r") : cannot open file
'/usr/lib/R/etc/Makeconf': Permission denied Warning in
install.packages : installation of package ‘nnet’ had non-zero exit
status
The downloaded source packages are in
‘/tmp/RtmpBT7yHE/downloaded_packages’
UPDATE:
It was just permission issue, all i needed is just:
$ sudo chmod -R 0777 /usr/lib/R/etc/ldpaths
and for the other directories: /usr/lib/R/etc/Makeconf and /usr/lib/R/bin/. I never had this issue before, so it didn't come to me as the problem immediately.