1、下載網(wǎng)址
https://www.lfd.uci.edu/~gohlke/pythonlibs
2、CTRL+F 查找 xgboost

3、單擊 xgboost,找到如下頁(yè)面:

4、查詢Python版本
在cmd下輸入:python
返回Python的版本:Python 3.5.2 |Anaconda 4.2.0 (64-bit)|
5、根據(jù)Python版本下載安裝包
xgboost?0.80?cp35?cp35m?win_amd64.whl
cp:是python的版本,cp35表示版本3.5
6、復(fù)制文件的路徑+文件名
筆者下載到了桌面
C:\Users\Gorde\Desktop\xgboost-0.80-cp35-cp35m- win_amd64.whl
7、在cmd模式下安裝
pip install C:\Users\Gorde\Desktop\xgboost-0.80-cp35-cp35m-win_amd64.whl

安裝成功截圖
8、有時(shí)候需要升級(jí)pip
安裝xgboost時(shí)會(huì)報(bào)以下錯(cuò)誤:

直接運(yùn)行命令:
python -m pip install --upgrade pip
成功后再安裝xgboost即可。