xgboost 安装

更新 xgboost 安装

brew install  libomp
pip install xgboost --user

更新 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
posted @ 2016-03-17 10:57  bregman  阅读(4575)  评论(0编辑  收藏  举报