简体   繁体   English

LightGBM 可用于 Mac M1 吗?

[英]Is LightGBM available for Mac M1?

My goal is to learn a notebook .我的目标是学习笔记本 It has recall 97% while I am struggling with F1 Score 'Attrited Customer' 77.9%.它有 97% 的召回率,而我正在与 F1 分数“Attrited Customer”77.9% 作斗争。 The problem is the notebook uses LightGBM.问题是笔记本使用 LightGBM。 I am unable to install LightGBM.我无法安装 LightGBM。

What I've tried:我试过的:

  1. pip install lightgbm -> it throws error python setup.py egg_info did not run successfully. pip install lightgbm -> 抛出错误python setup.py egg_info did not run successfully.
  2. Then, I did pip install whell -> now it throws error python setup.py bdist_wheel did not run successfully.然后,我做了pip install whell -> 现在它抛出错误python setup.py bdist_wheel did not run successfully.
  3. Then, I did pip install Cmake , pip install --upgrade pip setuptools , brew install libomp -> the error persisted.然后,我做了pip install Cmakepip install --upgrade pip setuptoolsbrew install libomp -> 错误仍然存在。

The full error完整的错误

  × 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

As of this writing, no official release of lightgbm (the Python package for LightGBM) supports the M1 Macs (which us ARM chips).在撰写本文时,还没有正式发布的lightgbm (LightGBM 的 Python package)支持 M1 Mac(我们使用 ARM 芯片)。

osx-arm64 builds of lightgbm are supported by the lightgbm conda-forge feedstock , so you can install lightgbm on an M1 Mac using conda . lightgbm lightgbm -forge feedstock 支持osx-arm64构建的lightgbm ,因此您可以使用conda在 M1 Mac 上安装lightgbm

conda install \
   --yes \
   -c conda-forge \
   'lightgbm>=3.3.3'

Progress towards officially supporting M1 Mac builds of LightGBM can be tracked in microsoft/LightGBM#5269 and microsoft/LightGBM#5328 .可以在microsoft/LightGBM#5269microsoft/LightGBM#5328中跟踪正式支持 LightGBM 的 M1 Mac 构建的进展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM