XGBoost Library (libxgboost.dylib) could not be loaded 怎么解决 for mac
时隔八个月没写代码,一行from xgboost import XGBClassifier就写了一个多小时…
试了很多方法
找到了一个最简洁的:
如果mac上没有Homebrew,首先需要下载,然后运行上述的commend line
下载Homebrew的方法:
-
打开terminal
-
输入commend line:/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
出现“Installation successful!” 说明安装成功。