close

How can I install XGBoost package in python on Windows

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How can I install XGBoost package in python on Windows in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How can I install XGBoost package in python on Windows?

  1. How can I install XGBoost package in python on Windows?

    The following command should work but, If you have a problem with this command
    conda install -c conda-forge xgboost

  2. install XGBoost package in python on Windows

    The following command should work but, If you have a problem with this command
    conda install -c conda-forge xgboost

Method 1

Build it from here:

  • download xgboost whl file from here (make sure to match your python version and system architecture, e.g. “xgboost-0.6-cp35-cp35m-win_amd64.whl” for python 3.5 on 64-bit machine)
  • open command prompt
  • cd to your Downloads folder (or wherever you saved the whl file) pip install xgboost-0.6-cp35-cp35m-win_amd64.whl (or whatever your whl file is named)

Method 2

The following command should work but, If you have a problem with this command

conda install -c conda-forge xgboost

First activate your environment . Assume your environment is named simply write in conda terminal :

activate <MY_ENV>

and then

 pip install xgboost

Conclusion

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read