【发布时间】:2016-07-05 03:41:25
【问题描述】:
我正在尝试将 rpy2 导入 python,但出现此错误:
RuntimeError: The R home directory could not be determined.
Try to install R <https://www.r-project.org/>,
set the R_HOME environment variable to the R home directory, or
add the directory of the R interpreter to the PATH environment variable.
我完全迷失了,因为我不知道这告诉了我什么。我试图搜索如何设置环境变量,但找不到对我有帮助的足够详细的信息。如果答案非常简单,我将不胜感激,因为我只是一个新手。我正在运行 OSX 10.11。
谢谢(我的第一篇文章,如果我忽略了发帖中的任何规则,我深表歉意)
【问题讨论】:
-
我尝试设置 R_HOME 但收到此错误 -
WARNING: ignoring environment value of R_HOME /usr/local/lib/R你解决了吗?