Error installing Tensorflow in R

I am trying to install Tensorflow in R as described 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 was giving the following error: -

Error: Prerequisites for installing TensorFlow not available.

      

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

+3


source to share


1 answer


Problem solved! I just updated the Rcpp package and gave the path to python using: -

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

      



I managed to install tensorflow using R.

+1


source







All Articles