@bitkoljas

Как исправить ошибку в RStudio при установке пакета rPython-win?

Лог ошибки:
> install("D:\\Speed EXE_Python\\rPython")
√ checking for file 'D:\Speed EXE_Python\rPython/DESCRIPTION' (441ms)
- preparing 'rPython':
√ checking DESCRIPTION meta-information ...
- cleaning src
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- building 'rPython_0.0-6.tar.gz'
Предупреждение: file 'rPython/cleanup' did not have execute permissions: corrected
Предупреждение: file 'rPython/configure' did not have execute permissions: corrected

Running "C:/PROGRA~1/R/R-36~1.3/bin/x64/Rcmd.exe" \
INSTALL \
"C:\Users\Seffel\AppData\Local\Temp\RtmpYpSqi7/rPython_0.0-6.tar.gz" \
--install-tests
* installing to library 'C:/Users/Seffel/Documents/R/win-library/3.6'
* installing *source* package 'rPython' ...
** using staged installation
** libs
this package has a non-empty 'configure.win' file,
so building only the main architecture

C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.3/include" -DNDEBUG -I"C:/Python27/include" -O2 -Wall -std=gnu99 -mtune=core2 -c pycall.c -o pycall.o
C:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o rPython.dll tmp.def pycall.o -LC:/python27/libs -lpython27 -LC:/PROGRA~1/R/R-36~1.3/bin/x64 -lR
:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/python27/libs/libpython27.a when searching for -lpython27
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/python27/libs/python27.lib when searching for -lpython27
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/python27/libs\libpython27.a when searching for -lpython27
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/python27/libs/libpython27.a when searching for -lpython27
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/python27/libs/python27.lib when searching for -lpython27
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/python27/libs\python27.lib when searching for -lpython27
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpython27
collect2.exe: error: ld returned 1 exit status
DLL не создан
ERROR: compilation failed for package 'rPython'
* removing 'C:/Users/Seffel/Documents/R/win-library/3.6/rPython'
* restoring previous 'C:/Users/Seffel/Documents/R/win-library/3.6/rPython'
Ошибка в (function (command = NULL, args = character(), error_on_status = TRUE, :
System command 'Rcmd.exe' failed, exit status: 1, stdout & stderr were printed
Type .Last.error.trace to see where the error occured
> .Last.error.trace

Stack trace:

1. devtools:::install("D:\\Speed EXE_Python\\rPython")
2. pkgbuild::with_build_tools(required = FALSE, callr::rcmd("INSTALL", ...
3. withr::with_path(rtools_path(), code)
4. base:::force(code)
5. callr::rcmd("INSTALL", c(install_path, opts), echo = !quiet, ...
6. callr:::run_r(options)
7. base:::with(options, with_envvar(env, do.call(processx::run, ...
8. base:::with.default(options, with_envvar(env, do.call(processx::run, ...
9. base:::eval(substitute(expr), data, enclos = parent.frame())
10. base:::eval(substitute(expr), data, enclos = parent.frame())
11. callr:::with_envvar(env, do.call(processx::run, c(list(bin, args = real_cmdargs, ...
12. base:::force(code)
13. base:::do.call(processx::run, c(list(bin, args = real_cmdargs, ...
14. (function (command = NULL, args = character(), error_on_status = TRUE, ...
15. throw(new_process_error(res, call = sys.call(), echo = echo, ...

x System command 'Rcmd.exe' failed, exit status: 1, stdout & stderr were printed

Подскажите, как исправить?
  • Вопрос задан
  • 118 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы