问题背景
使用import xgboost导包报错:
XGBoostError: XGBoost Library (libxgboost.dylib) could not be loaded.
Likely causes:
* OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, libomp.dylib for Mac OSX, libgomp.so for Linux and other UNIX-like OSes). Mac OSX users: Run `brew install libomp` to install OpenMP runtime.
* You are running 32-bit Python on a 64-bit OS
Error message(s): ['dlopen(/usr/local/lib/python3.7/site-packages/xgboost/lib/libxgboost.dylib, 6): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib\n Referenced from: /usr/local/lib/python3.7/site-packages/xgboost/lib/libxgboost.dylib\n Reason: image not found']
报错1:使用brew install libomp报错
cmake: "cxx11" is not a recognized standard
解决方案:重装homebrew,然后又遇到下面新的问题