問題描述:下載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下面後問題解決。