[已解決]報錯:XGBoostError: XGBoost Library (libxgboost.dylib) could not be loaded.


在jupyter notebook上安裝xgboost
pip install xgboost

安裝完成后運行 import xgboost 發生報錯

報錯內容如下:

XGBoostError: XGBoost Library (libxgboost.dylib) could not be loaded.

解決方法如下:

首先在終端刪除xgboost

conda remove xgboost

然后重新安裝

conda install py-xgboost

最后檢查安裝

import xgboost


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM