直接pip install xgboost
报错xgboost.libpath.XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?
xgboost.libpath.XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?
List of candidates:
C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\xgboost\xgboost.dll
C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\xgboost\../../lib/xgboost.dll
C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\xgboost\./lib/xgboost.dll
C:\Users\Administrator\AppData\Local\Programs\Python\Python36\xgboost\xgboost.dll
C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\xgboost\../../windows/x64/Release/xgboost.dll
C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\xgboost\./windows/x64/Release/xgboost.dll
解决方案
从Unofficial Windows Binaries for Python Extension Packages搜xgboost
并下载安装包,在命令行执行命令pip install xxx
安装
CSDN不用积分下载:https://download.csdn.net/download/lly1122334/12163709