Windows에서 CatBoost R 패키지를 설치하려고했지만 성공하지 못했습니다. 나는 모든 지시와 stackoverflow 포스트를 통과했다.Windows에 CatBoost R 패키지를 설치하는 중 오류가 발생했습니다.
필자가 지금까지 관리해온 것은 비단뱀을 VC++ 구성 요소와 함께 설치하는 것입니다.
패키지를 컴파일 할 수 있지만 설치할 때 "TypeError : resolve_system_cxx()가 4 개의 인수 (3 개)를 정확하게 가져옵니다."오류가 발생합니다. CatBoost 저장소를 검색했지만 기능의 소스 파일을 식별 할 수 없었습니다. 좀 더 도와 줄 수 있니?
는 여기에 패키지를 구축하기위한 Windows 7 및 파이썬 (3.6), 및 R 마이크로 소프트 분포 (3.3), 및 R 도구 3.4의 64 비트 버전을 사용하고있는 전체 로그
R version 3.3.3 (2017-03-06) -- "Another Canoe"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
Tippen Sie 'license()' or 'licence()' für Details dazu.
R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
Tippen Sie 'contributors()' für mehr Information und 'citation()',
um zu erfahren, wie R oder R packages in Publikationen zitiert werden können.
Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder
'help.start()' für eine HTML Browserschnittstelle zur Hilfe.
Tippen Sie 'q()', um R zu verlassen.
Microsoft R Open 3.3.3
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2017 Microsoft Corporation
Using the Intel MKL for parallel mathematical computing(using 2 cores).
Default CRAN mirror snapshot taken on 2017-03-15.
See: https://mran.microsoft.com/.
> setwd("xxx/catboost/catboost/R-package")
> getwd()
[1] "xxx/catboost/catboost/R-package"
> library(devtools)
> devtools::build()
"xxx/x64/R" --no-site-file --no-environ --no-save --no-restore \
--quiet CMD build "xxx\catboost\catboost\R-package" \
--no-resave-data --no-manual
* checking for file 'xxx\catboost\catboost\R-package/DESC
RIPTION' ... OK
* preparing 'catboost':
* checking DESCRIPTION meta-information ... OK
* cleaning src
Warnung: xxx/AppData/Local/Temp/RtmpoNbm7g/Rbuild2b547ba45252/catb
oost/man/catboost.train.Rd:63: unknown macro '\t'
Warnung: xxx/Local/Temp/RtmpoNbm7g/Rbuild2b547ba45252/catb
oost/man/catboost.train.Rd:63: unknown macro '\t'
Warnung: xxx/Local/Temp/RtmpoNbm7g/Rbuild2b547ba45252/catb
oost/man/catboost.train.Rd:63: unknown macro '\t'
Warnung: xxx/Local/Temp/RtmpoNbm7g/Rbuild2b547ba45252/catb
oost/man/catboost.train.Rd:63: unknown macro '\t'
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* building 'catboost_0.2.3.tar.gz'
[1] "xxx/catboost/catboost/catboost_0.2.3.tar.gz"
> devtools::install()
Installing catboost
"xxx/x64/R" --no-site-file --no-environ --no-save --no-restore \
--quiet CMD INSTALL \
"xxx/catboost/catboost/R-package" \
--library="xxx/library" --install-tests
* installing *source* package 'catboost' ...
** libs
running 'src/Makefile.win' ...
/cygdrive/xxx/catboost/catboost/R-package/src/../../../ya.
bat make -r -o ../../..
Traceback (most recent call last):
File "devtools/ya/entry/entry.py", line 157, in exit_interceptor
func()
File "devtools/ya/entry/entry.py", line 56, in <lambda>
return lambda: wrapper(f)
File "devtools/ya/entry/entry.py", line 121, in f
res = func()
File "devtools/ya/entry/entry.py", line 250, in <lambda>
run_main = lambda: do_main(args)
File "devtools/ya/entry/entry.py", line 49, in do_main
res = handler.handle(handler, args, prefix=['ya'])
File "devtools/ya/core/handler.py", line 157, in handle
return handler.handle(self, args[1:], prefix + [name])
File "devtools/ya/core/dispatch.py", line 37, in handle
return self.command().handle(root_handler, args, prefix)
File "devtools/ya/core/handler.py", line 337, in handle
return self._action(params)
File "devtools/ya/app.py", line 66, in helper
return action(ctx.params)
File "devtools/ya/build/build_handler.py", line 11, in do_ya_make
return YaMake(params, app_ctx).go()
File "devtools/ya/build/ya_make.py", line 523, in __init__
self.ctx = Context(self.opts, app_ctx=app_ctx, graph=graph, tests=tests, con
figure_errors=configure_errors, make_files=make_files)
File "devtools/ya/build/ya_make.py", line 352, in __init__
self.graph, self.tests, self.configure_errors, self.make_files = _build_grap
h_and_tests(self.opts, app_ctx)
File "devtools/ya/build/ya_make.py", line 244, in _build_graph_and_tests
graph, tests, gh, make_files = lg.build_graph_and_tests(opts, check=True, ev
_listener=ev_listener)
File "devtools/ya/build/graph.py", line 1343, in build_graph_and_tests
host_tc = bg.gen_tc(host)
File "devtools/ya/build/genconf.py", line 103, in gen_tc
return _resolve_cxx(platform_name, platform_name)
File "devtools/ya/build/genconf.py", line 73, in _resolve_cxx
return resolve_system_cxx("cl.exe", host, target)
File "devtools/ya/exts/func.py", line 60, in wrapper
return get(args)
File "devtools/ya/exts/func.py", line 54, in get
memory[args] = func(*args)
TypeError: resolve_system_cxx() takes exactly 4 arguments (3 given)
make: *** [all] Error 1
Warnung: Ausführung von Kommando 'make --no-print-directory -f "Makefile.win"' e
rgab Status 2
ERROR: compilation failed for package 'catboost'
* removing 'xxx/library/catboost'
Fehler: Command failed (1)
>
입니다. 우리는 R은 출시와 함께 바이너리 게시 0.6.1 버전에서 시작
건배 안드레이
Windows 7 64 비트, 새로 설치 한 최신 R 및 Python, MS VC++ 2017 및 2015 (설명서의 설치 절에서 설명)와 같은 오류가 발생했습니다. –