2017-10-18 98 views
0

我正在嘗試安裝rPython,但我得到了有關scrdir安裝的以下錯誤。 scr文件(makevars.win)以及configure.win文件具有相同的路徑。 我使用的路徑是:安裝rPython時出錯(scrdir)

#!/bin/sh 
echo PKG_LIBS=-LD:/Programs/Python27/libs -lpython27 
echo PKG_CFLAGS=-I"D:/Programs/Python27/include" 

這是錯誤我得到R.

install("D:/Programs/R-3.4.2/library/rPython") 
Installing rPython 
"D:/Programs/R-3.4.2/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \ 
    "D:/Programs/R-3.4.2/library/rPython" --library="D:/Programs/R-3.4.2/library" --install-tests 

ERROR: cannot install to srcdir for package 'rPython' 
* removing 'D:/Programs/R-3.4.2/library/rPython' 
Error: Command failed (1) 

我使用的是Windows 10的機器64位。有什麼建議麼?

回答

0

我設法解決了這個問題,在我電腦的「environment variables」中的變量Path中加上「C:/Rtools」。