[英]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.