win7-64 python xgboost installation

Source: Internet
Author: User
Tags xgboost python xgboost


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. First download the installation mingw64


(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



    • 2. Install Python, git

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

    • 3. Download xgboost

   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  

      • 64-bit compiler mingw-w64 to compile the downloaded code, which already provides

    • 4. install xgboost

(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

  1. #编译完成

      (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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.