博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

XGBOOST in WIN64 安装

Posted on 2019-10-13 12:42  HelenL  阅读(121)  评论(0编辑  收藏  举报

参考:https://blog.csdn.net/zyghs/article/details/50897716

环境

platform:windows 10,64位
Python: Python3.7+

mingw-w64的安装

https://sourceforge.net/projects/mingw-w64/files/?source=navbar.
安装时选择:

  • Architecture: x86_64
  • Thread: posix 不要选xin32,win32不支持C++11
  • Exception: seh

配置环境变量

将 安装目录\mingw64\bin粘贴到path环境变量下。
具体:我的电脑图标->右键->属性->高级系统设置->选择“高级”选项->选择下面“环境变量”->用户变量

找到:安装目录\mingw64\bin\mingw32-make.exe 更名为make.exe 方便使用
成功后,在cmd下输入make会返回“make: *** No targets specified and no makefile found. Stop.”

xgboost通过源码安装

git clone --recursivehttps://github.com/dmlc/xgboost
cd xgboost
git checkout -b release_0.90 origin/release_0.90  # **更换成release_0.90分支,最新分支不好使**
git submodule init
git submodule update
cp make/mingw64.mk config.mk
make -j4
cd python-package
python setup.py install