Xgboost: XGBoost Windows 安装错误

创建于 2016-04-05  ·  4评论  ·  资料来源: dmlc/xgboost

你好,

我正在使用 WINdows 7,尝试为 python 安装 XGBoost。
我正在使用 GIT Bash 这样做。
我已按照以下页面上的步骤进行操作-
https://github.com/dmlc/xgboost/blob/master/doc/build.md#building -on-windows
我在 MinGW 中有以下 make 版本-
mingw32-make bin 3.82.90-2-cvs-20120902
mingw32-make 文档 3.82.90-2-cvs-20120902
mingw32-make lang 3.82.90-2-cvs-20120902
mingw32-make lic 3.82.90-2-cvs-20120902
以及以下 g++ 版本-
mingw32-gcc-g++ bin 4.9.3-1
mingw32-gcc-g++ 开发 4.8.1-4
mingw32-gcc-g++ 文档 4.8.1-4
mingw32-gcc-g++ 人 4.9.3-1

在执行以下命令时 -
cp make/mingw64.mk config.mk; make -j4
我收到第二个命令的以下错误 -
$ make -j4 g++ -m64 -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -DDMLC_ENABLE_STD_THREAD=0 -Idmlc-core/include -Irabit/include -fopenmp -MM -MT build/learner.o src/learner.cc >build/learner.d g++ -m64 -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -DDMLC_ENABLE_STD_THREAD=0 -Idmlc-core/include -Irabit/include -fopenmp -MM -MT build/logging.o src/logging.cc >build/logging.d g++ -m64 -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -DDMLC_ENABLE_STD_THREAD=0 -Idmlc-core/include -Irabit/include -fopenmp -MM -MT build/common/common.o src/common/common.cc >build/common/common.d g++ -m64 -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -Iinclude -DDMLC_ENABLE_STD_THREAD=0 -Idmlc-core/include -Irabit/include -fopenmp -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in Makefile:97: recipe for target 'build/common/common.o' failed mingw32-make: *** [build/common/common.o] Error 1 mingw32-make: *** Waiting for unfinished jobs.... cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in Makefile:97: recipe for target 'build/c_api/c_api_error.o' failed mingw32-make: *** [build/c_api/c_api_error.o] Error 1 cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in Makefile:97: recipe for target 'build/logging.o' failed mingw32-make: *** [build/logging.o] Error 1 Makefile:97: recipe for target 'build/learner.o' failed mingw32-make: *** [build/learner.o] Error 1
请帮我找到这个问题的解决方案我似乎无法通过这个问题......!

最有用的评论

终于上班了!!
以下是一个非常有用的资源 -
http://stackoverflow.com/questions/33749735/how-to-install-xgboost-package-in-python-windows-platform

按照它一直到每个连字符

所有4条评论

我也无法安装最新版本。 希望有人可以帮助我。 目前,我使用的是 0.40 版本。 如果有人需要安装此版本的帮助,我很乐意提供帮助。

@uasthana15您正在使用 mingw32,请使用 mingw64。

@thirdwing您能否详细说明我认为我使用的是 mingw64,它是写在我的 bash 窗口上的,请您提供一个安装链接。

@SoulEvill非常感谢任何帮助,请让我知道我可以从哪里开始。

终于上班了!!
以下是一个非常有用的资源 -
http://stackoverflow.com/questions/33749735/how-to-install-xgboost-package-in-python-windows-platform

按照它一直到每个连字符

此页面是否有帮助?
0 / 5 - 0 等级