PythonでRを使いたいのですが、エラーが出て解決できないでおります。
■前提
当方、機械学習を勉強するために、Python+Rを試験実装しています。
どちらの言語も初心者です。(普段はJavaです)
■環境
Windows7 64bit
Python 3.5.2
PypeR 1.1.2
PyCharm Community Edition 2016.3
■事象
以下のようにRを呼び出していますが、エラーが出ます。
python
1import pyper 2r = pyper.R(use_pandas='True') 3iris = pd.read_csv(r"C:\Users\user\Desktop\r_Sample\iris.csv") 4r.assign('data', iris) 5r('rlm <- lm(Sepal.Width ~ Sepal.Length + Petal.Length + Petal.Width, data=iris)') 6print(r('summary(rlm)'))
エラーメッセージ
python
1C:\Python\python.exe C:/Users/user/PycharmProjects/sample/Ayame.py 2Traceback (most recent call last): 3 File "C:/Users/user/PycharmProjects/sample/Ayame.py", line 99, in <module> 4 r = pyper.R(use_numpy='True', use_pandas='True') 5 File "C:\Python\lib\site-packages\pyper.py", line 600, in __init__ 6 self.__dict__['prog'] = Popen(RCMD, stdin=PIPE, stdout=PIPE, stderr=return_err and _STDOUT or childstderr, startupinfo=info) 7 File "C:\Python\lib\subprocess.py", line 947, in __init__ 8 restore_signals, start_new_session) 9 File "C:\Python\lib\subprocess.py", line 1224, in _execute_child 10 startupinfo) 11FileNotFoundError: [WinError 2] 指定されたファイルが見つかりません。 12 13Process finished with exit code 1
どなたか解決方法をご教授頂けますでしょうか。。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/12/12 10:35