簡體   English   中英

LightGBM 可用於 Mac M1 嗎?

[英]Is LightGBM available for Mac M1?

我的目標是學習筆記本 它有 97% 的召回率,而我正在與 F1 分數“Attrited Customer”77.9% 作斗爭。 問題是筆記本使用 LightGBM。 我無法安裝 LightGBM。

我試過的:

  1. pip install lightgbm -> 拋出錯誤python setup.py egg_info did not run successfully.
  2. 然后,我做了pip install whell -> 現在它拋出錯誤python setup.py bdist_wheel did not run successfully.
  3. 然后,我做了pip install Cmakepip install --upgrade pip setuptoolsbrew 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#5269microsoft/LightGBM#5328中跟蹤正式支持 LightGBM 的 M1 Mac 構建的進展。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM