[英]Is LightGBM available for Mac M1?
我的目标是学习笔记本。 它有 97% 的召回率,而我正在与 F1 分数“Attrited Customer”77.9% 作斗争。 问题是笔记本使用 LightGBM。 我无法安装 LightGBM。
我试过的:
pip install lightgbm
-> 抛出错误python setup.py egg_info did not run successfully.
pip install whell
-> 现在它抛出错误python setup.py bdist_wheel did not run successfully.
pip install Cmake
, pip install --upgrade pip setuptools
, brew install libomp
-> 错误仍然存在。完整的错误
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [80 lines of output]
INFO:root:running bdist_wheel
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
INFO:root:running build
INFO:root:running build_py
INFO:root:creating build
INFO:root:creating build/lib
INFO:root:creating build/lib/lightgbm
在撰写本文时,还没有正式发布的lightgbm
(LightGBM 的 Python package)支持 M1 Mac(我们使用 ARM 芯片)。
lightgbm lightgbm
-forge feedstock 支持osx-arm64
构建的lightgbm
,因此您可以使用conda
在 M1 Mac 上安装lightgbm
。
conda install \
--yes \
-c conda-forge \
'lightgbm>=3.3.3'
可以在microsoft/LightGBM#5269和microsoft/LightGBM#5328中跟踪正式支持 LightGBM 的 M1 Mac 构建的进展。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.