How can I install XGBoost package in python on Windows

后端 未结 9 912
庸人自扰
庸人自扰 2020-12-16 15:32

I tried to install XGBoost package in python. I am using windows os, 64bits . I have gone through following.

The package directory states that xgboost is unstable fo

相关标签:
9条回答
  • 2020-12-16 15:55

    Besides what's already on developers' github, which is building from source(creating a c++ environment, etc.), I have found an easier way to do it, which I explained here with details. Basically, you have to go a website by UC Irvine and download a .whl file, then cd to the folder and install xgboost with pip.

    0 讨论(0)
  • 2020-12-16 15:56

    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)
    0 讨论(0)
  • 2020-12-16 15:58

    on a macOS the following command worked conda install -c conda-forge xgboost but before doing this i had read some other article and hence did install gcc using brew

    0 讨论(0)
提交回复
热议问题