Windows 中的 XGBoost 安装 [英] XGBoost Installation in windows

查看:34
本文介绍了Windows 中的 XGBoost 安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 windows 环境中的 anaconda 中安装 xgboost.Win 8.1,64 位,Python-3.5.如何为 xgboost 创建共享库,如

I am trying to install xgboost in anaconda in windows environment. Win 8.1, 64-bit, Python-3.5. How can I create a shared library for xgboost as mention in

安装指南

此页面提供有关如何构建和在各种系统上从头开始安装 xgboost 包.它包括两个步骤:

This page gives instructions on how to build and install the xgboost package from scratch on various systems. It consists of two steps:

首先从 C++ 代码构建共享库(libxgboost.so for适用于 Windows 的 linux/osx 和 libxgboost.dll).例外:对于 R 包安装请直接参考R包部分.然后安装语言包(例如 Python 包).

First build the shared library from the C++ codes (libxgboost.so for linux/osx and libxgboost.dll for windows). Exception: for R-package installation please directly refer to the R package section. Then install the language packages (e.g. Python Package).

我搜索了解决方案,但或多或​​少有相同的解决方案可用.任何人都可以帮助我完成 Windows 中的安装过程.

I searched for solution but more or less same solution is available. Can anyone help me out with installation procedure in windows.

推荐答案

您需要按照 "在 Windows 上构建".他们大多是正确的,但有时有点不清楚.

You'll want to follow the instructions under "Building on Windows". They're mostly correct, but sometimes a bit unclear.

例如,您需要从上面提到的其他操作系统中提到的 git clone 命令开始,但不适用于 Windows.然后,按照那里给出的说明进行操作.要使用 MinGW 进行编译,您还必须下载(特别是 64 位版本),并将其包含 mingw32-make.exe 文件的文件夹(我猜它是一个 bin 文件夹)添加到您的 PATH 环境变量中.

For instance, you need to start with the git clone command which is mentioned for other OSes above, but not for Windows. Then, follow instructions as given there. For compiling with MinGW, you'll also have to download that (specifically, the 64 bits version), and add its folder which contains the mingw32-make.exe file (I guess it's a bin folder) to your PATH environment variable.

这篇关于Windows 中的 XGBoost 安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆