Python rpy2安装

时间:2014-01-29 20:04:06

标签: python r rpy2

我安装了RPY2,当我尝试导入时,我收到以下错误。

Unable to determine R version from the registry. Trying another method.

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import rpy
  File "C:\Python27\lib\site-packages\rpy.py", line 53, in <module>
    RHOME = rpy_tools.get_R_HOME()
  File "C:\Python27\lib\site-packages\rpy_tools.py", line 57, in get_R_HOME
    raise RuntimeError("Couldn't execute the R interpreter.\n"
RuntimeError: Couldn't execute the R interpreter.
Check whether R is in the execution path.

我很确定我需要将C:\ Program Files \ R \ R-3.0.2 \ bin添加到python知道使用R的路径,但我不知道如何添加它或者添加它的路径到。

我可以找到你把它添加到路径但过去我迷路了。有人可以帮忙。

0 个答案:

没有答案