rPython-win
rPython-win copied to clipboard
Installation issue. R version 3.4.3. Python 3.6. windows 8.1 with rPython
Firstly, I use install.packages("rPython") to install rPython,the result:
Installing package into ‘C:/Users/fanfj/Documents/R/win-library/3.4’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘rPython’ is not available (for R version 3.4.3)
And then, I use install("D:/download/rPython"), and edit the configure.win file as follows:
#!/bin/sh
echo 'PKG_LIBS=-LD:\Users\Anaconda3\libs -lpython36' > src/makevars.win echo 'PKG_CFLAGS=-I"D:\Users\Anaconda3\include"' >> src/makevars.win the result as follows:
library(devtools) install("D:/download/rPython") Installing rPython "C:/PROGRA~1/R/R-34~1.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL
"D:/download/rPython" --library="C:/Users/fanfj/Documents/R/win-library/3.4" --install-tests
- installing source package 'rPython' ... ** libs Warning: this package has a non-empty 'configure.win' file, so building only the main architecture
c:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o rPython.dll tmp.def pycall.o -LD:UsersAnaconda3libs -lpython36 -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lR C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpython36 collect2.exe: error: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'rPython'
- removing 'C:/Users/fanfj/Documents/R/win-library/3.4/rPython' In R CMD INSTALL Error: Command failed (1) I use the directory (D:\Users\Anaconda3\libs) to check file, just python36.lib, no the file lpython36. So where I can find lpython36, what's the problem?
I encount the same problem as you, but I can't solve it.