首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >LightGBM对Mac M1可用吗?

LightGBM对Mac M1可用吗?
EN

Stack Overflow用户
提问于 2022-11-25 03:42:01
回答 1查看 78关注 0票数 1

我的目标是学习记事本。它的召回率为97%,而我的F1得分为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 ->,错误持续存在。

全误差

代码语言:javascript
运行
复制
  × 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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-11-25 03:48:56

在本文撰写之时,lightgbm (用于LightGBM的package )还没有官方版本支持M1 Mac(美国ARM芯片)。

osx-arm64构建的lightgbmconda锻造原料支持,因此您可以使用conda在M1 Mac上安装lightgbm

代码语言:javascript
运行
复制
conda install \
   --yes \
   -c conda-forge \
   'lightgbm>=3.3.3'

官方支持M1 Mac构建LightGBM的进展可以在microsoft/LightGBM#5269microsoft/LightGBM#5328中跟踪。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74568115

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档