【问题标题】:Error while installing Tensorflow in R在 R 中安装 TensorFlow 时出错
【发布时间】:2017-06-09 15:01:32
【问题描述】:

我正在尝试按照此处的说明在 R 中安装 Tensorflow-https://github.com/rstudio/tensorflow。我想在 R 中使用 Keras 进行深度学习。

devtools::install_github("rstudio/tensorflow") 

library(tensor flow)

install_tensorflow()

前两行有效,但最后一行给出以下错误:-

Error: Prerequisites for installing TensorFlow not available.

知道如何解决这个问题吗?我已经安装了 anaconda 和 python 3.6。我正在使用 Mac OS X。

【问题讨论】:

    标签: r tensorflow installation


    【解决方案1】:

    问题已解决!我刚刚更新了“Rcpp”包并使用以下命令提供了 python 的路径:-

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

    我能够使用 R 安装 tensorflow。

    【讨论】:

    • 您是否还收到任何警告说安装后该版本已被弃用?
    猜你喜欢
    • 2020-04-18
    • 2019-01-20
    • 1970-01-01
    • 2016-03-19
    • 1970-01-01
    • 1970-01-01
    • 2018-05-03
    • 2018-03-15
    • 1970-01-01
    相关资源
    最近更新 更多