xgboost 安装

更新 xgboost 安装:

  1. 下载 xgboost.dll : http://ssl.picnet.com.au/xgboost/20180217/x64/xgboost.dll
  2. 下载 https://github.com/dmlc/xgboost/archive/master.zip
  3. 解压 master.zip后, 进入目录 python-package/xgboost, 将xgboost.dll 复制到此处。
    然后安装 cd python-package; python setup.py install

参考: http://www.picnet.com.au/blogs/guido/post/2016/09/22/xgboost-windows-x64-binaries-for-download/


  1. 下载安装 git-windows 和 mingw32-make, g++(64位)
    https://github.com/git-for-windows/git/releases/download/v2.7.3.windows.1/Git-2.7.3-64-bit.exe
    http://mirrors.aliyun.com/CRAN/bin/windows/Rtools/Rtools33.exe
    注意 windows 10 64位系统,用tdm-gcc编译后,出现动态链接库错误。 最新的mingw可以解决,下载见这里x86_64-5.3.0-release-win32-seh-rt_v4-rev0.7z

  2. 打开git bash, 输入下面命令


git clone --recursive https://github.com/dmlc/xgboost
cd xgboost

git submodule init
git submodule update

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

cd python-package/
python setup.py   install

参考:

  1. http://dnc1994.com/2016/03/installing-xgboost-on-windows/
  2. https://xgboost.readthedocs.org/en/latest/build.html#building-on-windows

转载于:https://www.cnblogs.com/bregman/p/5286496.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值