pip install xgboost安装失败解决

使用pip直接下载出错,如下:

C:\Users\lenovo>pip install xgboost
Collecting xgboost
  Downloading xgboost-1.1.1-py3-none-win_amd64.whl (54.4 MB)
     |█                               | 1.6 MB 3.8 kB/s eta 3:52:15ERROR: Exception:
Traceback (most recent call last):

使用whl下载出错,如下:

C:\Users\lenovo>pip install E:\xgboost-0.81-cp34-cp34m-win_amd64.whl
ERROR: xgboost-0.81-cp34-cp34m-win_amd64.whl is not a supported wheel on this platform.

最后使用whl下载成功,原因是下载版本不对,下载文件中-cp34- 代表的是python版本,在下载时需要选择对应python版本,本人Python版本3.6,如下,下载-cp36-安装成功
下载地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#xgboost

C:\Users\lenovo>pip install C:\Users\lenovo\Downloads\xgboost-1.1.0-cp36-cp36m-win_amd64.whl
Processing c:\users\lenovo\downloads\xgboost-1.1.0-cp36-cp36m-win_amd64.whl
Requirement already satisfied: scipy in e:\program files (x86)\python\lib\site-packages (from xgboost==1.1.0) (1.3.0)
Requirement already satisfied: numpy in e:\program files (x86)\python\lib\site-packages (from xgboost==1.1.0) (1.16.0)
Installing collected packages: xgboost
Successfully installed xgboost-1.1.0
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值