I am facing this problem while moving the python-package directory of XGBoost.Traceback (most recent call last): File "setup.py", line 19, in LIB_PATH = libpath'find_lib_path' File "xgboost/libpath.py", line 46, in find_lib_path 'List of candidates:\n' + ('\n'.join(dll_path))) builtin.XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?Could anyone explain to me how to fix it?thanks in advance. 解决方案 You get that message when trying to install the xgboost Python package without the xgboost binaries present. The proper way to install the xgboost Python package from source is the following (assuming you have a compiler such as gcc installed):git clone --recursive https://github.com/dmlc/xgboost.gitcd xgboost./build.shcd python-packagepython setup.py installI prefer to do it inside a virtual environment. Note that the option --recursive when cloning the repo is essential since it will also clone folders from different repos such as dmlc-core which are necessary for building xgboost. 这篇关于XGBoostLibraryNotFound:在候选路径中找不到XGBoost库,是否在根路径中安装了编译器并运行build.sh?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-26 19:57