How to Install XGBoost on Windows


When you googled and landed to this blog, I could say you are struggling to install XGBoost on your Python. Anyway, My environment is Windows 7 and I use Spyder Python 3.4.4. I like this Spyder, it has so many modules available such as Panda, Numpy, Seaborn, Matplotlib, etc but no XGBoost. Let’s me give you some tips on how to install it:

  1. Go to this GitHub, https://github.com/dmlc/xgboost and download the folder python-package. Save it into your python environment. …\python-package\xgboost. it depends on where you have your python.exe. I have several python versions on my computer.
  2. Go to this site, http://www.picnet.com.au/blogs/guido/post/2016/09/22/xgboost-windows-x64-binaries-for-download/ and download  the latest libxgboost.dll. And save it to the same location as number 1.
  3. run python setup.py install.
  4. Once finished, open python console and type import xgboost to check if your installation ran successfully or not.

 

Good Luck!!!!!