![](/img/trans.png)
[英]RPy2 on Windows Jupyter notebook: The system cannot find the file specified
[英]converting from rpy to rpy2 Error 2 system can not find the file specified
我在Windows Server 2008上設置了rpy。 它做了一個簡單的
from rpy import *
和
r.assign(blah blah)
一切都很好。 但是后來我們轉到Windows Server 2016並安裝了rpy2,意識到我需要更改為
import rpy2.robjects as r
但是現在執行上面的導入給我一個長錯誤,結尾為
c:\Python27\ArcGIS10.5\lib\subprocess.py line 641 in _execute_child_ startupinfo
WindowsError [Error 2] The System can not find the file specified
設置全局變量R_Home似乎不會影響此錯誤,因為我可以將其刪除,並且代碼仍然會引發錯誤。
確保安裝了最新的R,然后確保將R bin目錄添加到環境PATH,然后將R_HOME設置為r-3.4.4 dir,將R_USER設置為c:\\ users [您的用戶名]
我通過rdp在虛擬環境中工作,並且直到注銷並重新登錄后,以上這些更改才進行注冊。這是主要問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.