【发布时间】:2018-05-25 17:05:25
【问题描述】:
我想知道是否有办法在 R 中安装 tensorflow,然后在 python 中运行此安装。我可以使用指令here 在 R 中成功安装 tensorflow。我还在那个链接上运行了测试,它工作正常。
但是当我打开 Python 并运行 import tensorflow 时,我得到了错误:ImportError: No module named 'tensorflow'。这是一种让 Python 识别来自 R 的安装的方法吗?或者是从 Python 运行 tensorflow 以按照here 的指示安装它的唯一方法?
我想这样做的原因是我和我的同事在我们没有管理权限的机器上工作,我正在尝试生成对每个人都有效的代码。感谢您提出的任何建议。
【问题讨论】:
-
你可以尝试从 R 调用 Python "system('python test.py hello world', wait = FALSE)"
标签: python r tensorflow