How to install xgboost in ubuntu

pip install xgboost

Error:

Downloading/unpacking xgboost  Could not find aversion that satisfies there quirement xgboost (from versions:0.4a12,0.4a13,0.4a14,0.4a15,0.4a18,0.4a19,0.4a20,0.4a21,0.4a22,0.4a23,0.4a24,0.4a25,0.4a26,0.4a27,0.4a28,0.4a29,0.4a30)Cleaning up...No distributions matching the version for xgboost Storing debug logfor failurein/home/hadoop/.pip/pip.log

So:

sudo apt-get update

Also the same error, badly!

go on:

sudo -H pip install --pre xgboost

Finally succeed!

Successfully built xgboost

Installing collected packages: scikit-learn, xgboost

Successfully installed scikit-learn-0.18.1 xgboost-0.6a2

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容