- https://www.lfd.uci.edu/~gohlke/pythonlibs
- CTRL+F 查找 xgboost
- 单击 xgboost,找到如下页面
- 查询Python版本(本机是3.8)
- 根据Python版本下载安装包
- 下载到了桌面
- 在cmd模式下安装
pip install D:\worke\xgboost\xgboost-1.6.1-cp38-cp38-win_amd64.whl
有时候需要升级pip
直接运行命令:python -m pip install --upgrade pip
成功后再安装xgboost即可