2016-03-27 32 views
0

我想在64位Windows 10中为Anaconda Python 3.x编译xgboost,所以我按照这里的步骤 - https://xgboost.readthedocs.org/en/latest/build.html#building-on-windows和这里 - Install xgboost under python with 64-bit msys failing。使用64位的MinGW G ++,我得到了以下错误消息,当“让-j4”使用mingw64.mk:使用64位mingw构建xgboost失败g ++

g++: error: dmlc-core/libdmlc.a: No such file or directory 
g++: error: rabit/lib/librabit_empty.a: No such file or directory 
Makefile:120: recipe for target 'lib/libxgboost.dll' failed 
mingw32-make: *** [lib/libxgboost.dll] Error 1 

能否请您让我知道这是怎么回事,我该如何解决这个问题?

非常感谢。

回答

0

你必须先进入dmlc-core和rabit子目录并执行make。然后来到xgboost库并执行build.sh。

0

运行安装时可能你没有在正确的文件夹中。尝试以下操作。

拉起蟒蛇提示符下运行:

cd xgboost\python-package 
python setup.py install 

如果这仍然失败,请尝试从头the process in this link,它应该工作。从链接引用:

首先遵循以下程序(在Windows上的Git bash)的官方指南:

git clone --recursive https://github.com/dmlc/xgboost 
git submodule init 
git submodule update 

然后安装TDM-GCC这里并执行以下操作Git中的Bash:

alias make='mingw32-make' 
cp make/mingw64.mk config.mk; make -j4 

最后,请执行以下操作使用anaconda提示或混帐击:

cd xgboost\python-package 
python setup.py install 
0

你缺少您的目录中的库。您必须递归克隆xgboost以包含它们。只需按照安装指南中提到的克隆过程操作即可,您应该没问题!