XGBoost is a popular machine learning library, which is mostly used to win the kaggle competition. Most of the machine learning developer will try to use this library to get a more accurate model. In this tutorial, you will learn, how to install the XGBoost package on Windows 10 for Python programming. 

If you look at the documentation of XGBoost, it will show too many steps to install XGBoost. The goal of this tutorial is to ease the installation of the XGBoost library on Windows 10 in few easy steps.

Let start.


First, you need the Python 64-bit version. It is highly recommended to use the 64-bit Python version.

Get the latest Python version


Get the Python 3.7 version(Latest version while writing this post)


Install the downloaded python by clicking next and next.

If you have python already installed, you can check the bit of the python by typing python in cmd.

In the above picture, if it shows 32 bit on your machine, then you must uninstall 32-bit python and install python 64-bit version.


Install the pip, if you don't have it on your  machine.

Get pip file using


Save the above file and execute the file using

python get-pip.py

Now you have installed the pip.


Get Python XGBoost whl file using below link


I have installed Python 3.7 64-bit version choose xgboost-0.81-cp37-cp37m-win_amd64.whl file.


Make sure to match your python version and system architecture, e.g. "xgboost-0.81-cp37-cp37m-win_amd64.whl" for python 3.7 on 64-bit machine


Install the downloaded XGBoost Python whl file using below command.

pip install xgboost-0.81-cp37-cp37m-win_amd64.whl

That's all. You have successfully installed XGBoost on your Windows 10.


You can import the XGBoost package to test. Open any python editor and type below code

import xgboost as xgb