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 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
内容的提问来源于stack exchange,提问作者Jason Rich Darmawan
相关产品推荐
相关产品推荐

