1
我試圖使用導入rpy1.0.3模塊python2.6.6:導入RPY模塊爲蟒蛇
from rpy import *
,並收到此錯誤:
File "C:\Python26\lib\site-packages\rpy.py", line 58, in <module>
RVERSION = rpy_tools.get_R_VERSION(RHOME)
File "C:\Python26\lib\site-packages\rpy_tools.py", line 103, in get_R_VERSION
raise RuntimeError("Couldn't obtain version number from output\n"
RuntimeError: Couldn't obtain version number from output
of `R --version'.
正如陳述rpy文檔我已經建立了一個環境變量,其文件路徑爲我的R目錄,但似乎無法識別R的版本(我已安裝2.9.0)。有什麼想法嗎?謝謝
如果運行在命令線R --version會發生什麼創造了rpy_tools.pyc文件? – 2011-05-05 01:46:00