LoginSignup
6
7

More than 5 years have passed since last update.

Windowsにxgboost(python版)をインストール

Posted at

動作環境

Windows 7 Professional 64bit
Python 2.7.9 (Anaconda)
Visual Studio 2010 Professional

手順

Cドライブ直下にxgboostをダウンロード。

> cd c:\
> git clone https://github.com/dmlc/xgboost.git

c:\xgboost\windowsxgboost.slnがあるので、
Visual Studioで開きリリースモードでリビルドする。
ここでxgboostjavawrapperではjni.hが必要なようだけれど
Javaから使う予定はないのでxgboostjavawrapperをアンロードしてソリューションから除外する。

リビルドが成功したら[setup.py]を実行する。

> cd c:\xgboost\python-package
> python setup.py install

問題なくインストールできているか確認。

> python
>>> import xgboost as xgb

エラーがでなければOK。

参考

xgboost/windows

6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7