【发布时间】:2021-01-16 17:26:27
【问题描述】:
有人知道如何让 XGboost 与 Apple M1 配合使用吗?
我尝试了多种方法来修复它,但它不起作用。
我已经尝试重新安装它; pip 和 pip3 和 python -m pip 和 conda 安装;酿造安装limpomp;酿造安装 gcc@8;下载源代码并在本地编译。
XGboost 似乎不适用于 Apple M1。
这是错误,当我在脚本中导入 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(/opt/anaconda3/envs/msc-env/lib/python3.8/site-packages/xgboost/lib/libxgboost.dylib, 6): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib\n Referenced from: /opt/anaconda3/envs/msc-env/lib/python3.8/site-packages/xgboost/lib/libxgboost.dylib\n Reason: image not found']
【问题讨论】:
标签: macos machine-learning xgboost apple-m1