百度上使用 brew install llvm, brew install clang-omp,再pip install xgboost的方法,试了不行。
还有要下载安装包,升级gcc 的方式,也没有安装成功。
最后使用conda install py-xgboost命令,
期间出现报错:RemoveError: 'requests' is a dependency of conda and cannot be removed from conda's operating environment.,使用conda update --force conda命令,再次尝试conda install py-xgboost,安装成功。