相关疑难解决方法(0)

如何将R_HOME环境变量设置为R主目录?

我试图将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.
Run Code Online (Sandbox Code Playgroud)

我完全迷失在这里,因为我不知道这告诉我什么.我试图搜索如何设置环境变量,但找不到任何对我有帮助的详细信息.如果答案可以非常简单,我会很感激,因为我只是一个新手.我正在运行OSX 10.11.

谢谢(我的第一篇文章,如果我忽略了发布中的任何规则,我道歉)

python r rpy2

7
推荐指数
2
解决办法
1万
查看次数

标签 统计

python ×1

r ×1

rpy2 ×1