0

我尝试使用下载安装 rpyhttp://sourceforge.net/projects/rpy/files/latest/download?source=directory

我收到此错误:

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

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    from rpy import *
  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.

为什么会发生这种情况,我该如何阻止它?

4

1 回答 1

0

在安装 R 期间,会显示一个复选框,让您可以选择将 R 版本号添加到注册表。

也许你没有检查它?重新安装 R 可能会有所帮助。

在此处输入图像描述

于 2013-09-16T17:26:20.860 回答