您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

如何在python(Windows平台)中安装xgboost软件包?

如何在python(Windows平台)中安装xgboost软件包?

我已在Windows 8 64位,Python 2.7和Visual Studio 2013中成功安装XGBoost(不需要mingw64)

使用新版本的XGBoost,这是我的步骤

安装cmake https://cmake.org/download/

验证cmake已成功安装

$ cmake
Usage

cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>
...

克隆xgboost源

$ git clone https://github.com/dmlc/xgboost xgboost_dir

创建Visual Studio项目

$ cd xgboost_dir
$ mkdir build
$ cd build
$ cmake .. -G"Visual Studio 12 2013 Win64"

构建Visual Studio 2013项目

构建解决方案后,将在文件夹中创建两个新文件libxgboost.dllxgboost.exe``xgboost_dir/lib

构建python包

验证xgboost已成功安装

$ python -c "import xgboost"

这是我的步骤:

python 2022/1/1 18:37:43 有345人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶