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

问题

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

解决方案

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

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

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应该就可以了,不行的话就重启电脑吧。

猜你喜欢

转载自blog.csdn.net/maqunfi/article/details/83070183