It consists of four steps:
1. First download the installation mingw64
2. Install Anaconda and Git
3. Download Xgboost, I'm referring to 52300869
4. Installing Xgboost
Specific as follows:
(1) for http://mingw-w64.org/doku.php/download
Pull down to see:
Click to go to the page as follows : https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/
Click on the top of the green download , https://sourceforge.net/projects/mingw-w64/files/latest/download?source=files
Start Installation
Note the Blue Mark section
Congratulations on installation success!
(2) Add the path of the Mingw32-make.exe to the user path: C:\Program files\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\ Mingw64\bin
Like my small white, unfamiliar installation will default C drive, haha
Do not add path variables? I'm going to laugh at you!
(3) Then, open cmd, enter Mingw32-make, if the output is as follows, the description succeeds
Highly recommended anaconda,https://www.anaconda.com/
You'll know it's good when you go to Baidu.
Git installation: Enter in Anaconda prompt
Conda Install git
   c/users Create a new folder Xgboostcode to hold the code and download the file, and then enter the following command in the bash terminal that you just opened, locate the directory
$ cd/c/users/xgboostcode/
Then download xgboost from GitHub using the following command. ( I downloaded it myself, but I don't know how to install it, cover my face ~)
$ git clone--recursive https://github.com/dmlc/xgboost
$ CD Xgboost
$ git submodule init
$ git submodule update
(1) using Windows Program Search to open "Git bash", with the same length as CMD, but to use a command that is not supported in CMD. After opening , enter:
$ cd/c/users/xgboostcode/xgboost #定位到文件夹
$ CD Dmlc-core
$ make-j4
$ CD. /rabit
$ make Lib/librabit_empty.a-j4
$ CD.
$ CP make/mingw64.mk CONFIG.MK
$ make-j4
#编译完成
(2) after execution, you can install the Xgboost Python module in Anaconda. In the Start menu of your computer, open Anaconda Prompt, and enter the following command:
CD Xgboostcode\xgboost\python-package
(3) then enter the installation command:
python setup.py Install
Enter import xgboost in Python If there are no errors, congratulations.
win7-64 python xgboost installation