解决xgboost安装问题:xgboost.core.XGBoostError: XGBoost Library (xgboost.dll) could not be loaded.

问题描述:下载xgboost,使用pip安装后,在python中导入import xgboost出错。如下:

xgboost.core.XGBoostError: XGBoost Library (xgboost.dll) could not be loaded.

问题解决:根据错误提示把vcomp140.dll or libgomp-1.dll导入到C:\Windows\System32下面,但是依然报同样的错误。

最后在windows server 2008下运行,提示:

然后下载vcruntime140_1.dll,拷贝到C:\Windows\System32下面后问题解决。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章