简体   繁体   English

在rstudio上安装tensorflow时遇到问题

[英]Having trouble installing tensorflow on rstudio

I am fairly new to R studio, any help would be appreciated. 我是R工作室的新手,任何帮助将不胜感激。 I am installing r studio on my Mac, I am getting an error while trying to install tensorflow 我正在我的Mac上安装r studio,我在尝试安装tensorflow时遇到错误

devtools::install_github("rstudio/tensorflow") devtools :: install_github( “rstudio / tensorflow”)

library(tensorflow) 库(tensorflow)

install_tensorflow() install_tensorflow()

I get this error 我收到这个错误

Error: Prerequisites for installing TensorFlow not available. 错误:安装TensorFlow的先决条件不可用。

Execute the following at a terminal to install the prerequisites: 在终端上执行以下命令以安装先决条件:

$ sudo /usr/bin/easy_install pip $ sudo /usr/local/bin/pip install --upgrade virtualenv $ sudo / usr / bin / easy_install pip $ sudo / usr / local / bin / pip install --upgrade virtualenv

Any help would be appreciated thank you! 任何帮助将不胜感激,谢谢!

From the official Rstudio website : 来自官方Rstudio 网站

TensorFlow is distributed as a Python package and so needs to be installed within a Python environment on your system. TensorFlow作为Python包分发,因此需要安装在系统的Python环境中。 By default, the install_tensorflow() function attempts to install TensorFlow within it's own isolated Python environment (“r-tensorflow”). 默认情况下,install_tensorflow()函数尝试在其自己的隔离Python环境(“r-tensorflow”)中安装TensorFlow。

And the python installation mostly relies on pip for installing it's dependencies. python安装主要依赖于pip来安装它的依赖项。 As the error message suggests, install pip and upgrade the virtualenv and see if that fixes the issue. 正如错误消息所示,安装pip并升级virtualenv并查看是否可以解决问题。

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

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