You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Mac M1环境下无法安装LightGBM的技术求助

无法安装LightGBM以学习高召回率客户流失分类Notebook

我的目标是学习一份Kaggle上的客户流失分类Notebook,它针对“Attrited Customer”类别的召回率达到了97%,但我自己处理该类别时F1分数仅为77.9%。目前卡在这份Notebook使用的LightGBM库安装上,始终无法成功完成。

已尝试的操作

  • 执行pip install lightgbm,报错:python setup.py egg_info did not run successfully.
  • 尝试安装wheel工具:pip install wheel,仍报错: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

内容的提问来源于stack exchange,提问作者Jason Rich Darmawan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.10 18:45:39