2013-09-16 38 views
0

安裝RPY使用上http://sourceforge.net/projects/rpy/files/latest/download?source=directory進口RPY給我都試過錯誤

下載我得到這個錯誤:

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. 

這是爲什麼hapenning和我怎樣才能阻止它?

+1

你已經安裝了R' –

+0

是的,我今天安裝它 – user2784753

+0

如果你打開你的cmd.exe你可以鍵入R並讓它進入R?您可能只需將其添加到您的路徑中。 –

回答

0

在安裝R期間,會顯示一個複選框,讓您可以選擇將R版本號添加到註冊表中。

也許你沒有檢查它?重新安裝R可能會有所幫助。

enter image description here