简体   繁体   English

在R中安装Tensorflow时出错

[英]Error while installing Tensorflow in R

I am trying to install Tensorflow in R as explained here- https://github.com/rstudio/tensorflow . 我正在尝试在R中安装Tensorflow,如下所述 - https://github.com/rstudio/tensorflow I want to use Keras for deep learning in R. 我想用Keras在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. 我安装了anaconda和python 3.6。 And I am using Mac OS X. 我正在使用Mac OS X.

The issue is resolved! 问题解决了! I just updated the 'Rcpp' package and gave the path to python using:- 我刚刚更新了'Rcpp'包,并使用以下方法给出了python的路径:

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

I was able to install tensorflow using R. 我能够使用R安装tensorflow。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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