【发布时间】:2010-07-31 04:55:33
【问题描述】:
您好,我刚刚下载了 rpy2 和 Python 2.6。当我尝试运行我在互联网上找到的一些示例代码时,我收到了这个错误。谁能解释为什么会发生这种情况以及我该如何解决?谢谢。
import rpy2.robjects as RO
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import rpy2.robjects as RO
File "C:\Python26\lib\site-packages\rpy2\robjects\__init__.py", line 12, in <module>
import rpy2.rinterface as rinterface
File "C:\Python26\lib\site-packages\rpy2\rinterface\__init__.py", line 22, in <module>
"This might be because R.exe is nowhere in your Path.")
RuntimeError: Unable to determine R version from the registery.Calling the command 'R RHOME' does not return anything.
This might be because R.exe is nowhere in your Path.
【问题讨论】: