解决办法:

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

 

相关文章:

  • 2022-01-04
  • 2021-06-27
  • 2021-11-12
  • 2021-06-21
  • 2021-06-19
  • 2021-11-14
  • 2021-05-03
  • 2021-09-18
猜你喜欢
  • 2021-11-21
  • 2021-07-04
  • 2022-01-04
  • 2022-12-23
  • 2021-10-16
  • 2021-10-07
  • 2021-09-11
相关资源
相似解决方案