Ubuntu: ImportError: No module named xgboost

Posted 华东 博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu: ImportError: No module named xgboost相关的知识,希望对你有一定的参考价值。

ImportError: No module named xgboost

解决办法:

git clone --recursive https://github.com/dmlc/xgboost
cd xgboost; 
sudo make -j4
sh build.sh
cd python-package
python setup.py install

 

如果已经完成了一下步骤:

git clone --recursive https://github.com/dmlc/xgboost
cd xgboost; 
sudo make -j4

请尝试在当前目录下继续执行:

sh build.sh
cd python-package
python setup.py install

 

更多细节见:

http://stackoverflow.com/questions/40747738/importerror-no-module-named-xgboost

 

以上是关于Ubuntu: ImportError: No module named xgboost的主要内容,如果未能解决你的问题,请参考以下文章