简体   繁体   中英

Error while installing Tensorflow in R

I am trying to install Tensorflow in R as explained here- https://github.com/rstudio/tensorflow . I want to use Keras for deep learning in R.

devtools::install_github("rstudio/tensorflow") 

library(tensor flow)

install_tensorflow()

The first two lines worked but the last line gave the following error:-

Error: Prerequisites for installing TensorFlow not available.

Any idea how to resolve this? I have installed anaconda and python 3.6. And I am using Mac OS X.

The issue is resolved! I just updated the 'Rcpp' package and gave the path to python using:-

reticulate::use_python("/Users/../anaconda/bin/python")

I was able to install tensorflow using R.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM