日常写BUG——各个平台下安装XgBoost

来源:互联网 发布:linux python 安装sip 编辑:程序博客网 时间:2024/06/03 15:58

我是在win10下面的Anaconda安装XgBoost出现了问题
刚开始,我直接从Anaconda里面安装,像下面那张图一样:
这里写图片描述

然而发现会出现下面的错误:

DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20. “This module will be removed in 0.20.”, DeprecationWarning)

搜了一下发现如下解决办法:

  1. anaconda search -t conda xgboost
    会出现如下结果:
    这里写图片描述

  2. 安装wein64的话输入的命令为:conda install -c mndrake xgboost
    像下面一样不报错就表示成功了
    这里写图片描述

安装其它平台的只是换一下包的名称

这样发现Anaconda下出现了xgboost
这里写图片描述

参考:
https://stackoverflow.com/questions/35139108/how-to-install-xgboost-in-anaconda-python-windows-platform