64位Windows 10, 安装xgboost Python库。

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/oukohou/article/details/72763735

本篇只需3步,轻松完成在windows 10-64位上xgboost 的python包。

Note that as of the most recent release the Microsoft Visual Studio instructions no longer seem to apply

即xgboost最近的版本,具体到2016-2月以后的版本,已经取消了利用MicrosoftVisual Studio安装的途径,陈天奇的话是:
取消MSVC

所以,我在踩了无数坑之后,终于发现了这个只需三步的安装步骤,拿走不谢:

1. clone xgboost.

建议选择在

C:\Python27\Lib\site-packages

该目录下进行clone, 图示如下:
选择路径

这里第二行输入git 测试,如提示没有安装git, 请参看如何安装 git

然后进行:

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

成功之后,显示:
clone success.

2. 下载libxgboost.dll

在这里下载libxgboost:

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

下载之后,将libxgboost拷贝到目录:

C:\Python27\Lib\site-packages\xgboost\python-package\xgboost

3. 安装xgboost

打开命令行,输入:

扫描二维码关注公众号,回复: 3898182 查看本文章
cd C:\Python27\Lib\site-packages\xgboost\python-package\xgboost
python setup.py install

然后就万事大吉了。

4. 测试xgboost

测试xgboost

Your upvote is my motivation!Upvote and you’re free to go.~_~
now, enjoy your xgboost.

参考:
1.官方的 installation guide.
2.陈天奇大神关于取消msvc build的comment.
3.Installing the Python Wrapper

猜你喜欢

转载自blog.csdn.net/oukohou/article/details/72763735