问题

安装好xgboost,但是在跑程序时遇到如下的报错情况

安装xgboost遇错xgboost.libpath.XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path

解决方案

1.在链接http://www.picnet.com.au/blogs/guido/2016/09/22/xgboost-windows-x64-binaries-for-download/中下载最新版本的xgboost.dll.

安装xgboost遇错xgboost.libpath.XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path

2.根据提示将下载的xgboost.dll放置到C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages\xgboost下,

安装xgboost遇错xgboost.libpath.XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path

3.在cmd中执行如下命令行,其中./build.sh可能执行 不过去,执行不过去的话就修改为bulid.sh试试,不行的话就算了,执行好其他步就得了。

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

4.此时xgboost应该就可以了,不行的话就重启电脑吧。

安装xgboost遇错xgboost.libpath.XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path

相关文章:

  • 2021-12-26
  • 2021-06-13
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-12
  • 2021-10-29
  • 2021-06-14
  • 2021-11-20
  • 2021-10-12
  • 2021-12-02
相关资源
相似解决方案