How to install xgboost in ubuntu

2017-03-09  本文已影响0人  MarkSJL

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

上一篇下一篇

猜你喜欢

热点阅读