我们需要pip来安装xgboost
这个时候有可能会报如下错误:
这时候需要安装setuptools
执行完这步骤,再回到pip目录下执行安装命令即可。
一切正常
@H_502_85@Requirement already satisfied (use --upgrade to upgrade): xgboost in /usr/local/python27/lib/python2.7/site-packages
@H_502_85@Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/local/python27/lib/python2.7/site-packages (from xgboost)
@H_502_85@Requirement already satisfied (use --upgrade to upgrade): scipy in /usr/local/python27/lib/python2.7/site-packages (from xgboost)
@H_502_85@
@H_502_85@或者更简单一些
@H_502_85@python get-pip.py
@H_502_85@pip install xgboost
原文链接:https://www.f2er.com/centos/381718.html