我的目标是学习记事本。它的召回率为97%,而我的F1得分为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
发布于 2022-11-25 03:48:56
在本文撰写之时,lightgbm
(用于LightGBM的package )还没有官方版本支持M1 Mac(美国ARM芯片)。
osx-arm64
构建的lightgbm
受conda锻造原料支持,因此您可以使用conda
在M1 Mac上安装lightgbm
。
conda install \
--yes \
-c conda-forge \
'lightgbm>=3.3.3'
官方支持M1 Mac构建LightGBM的进展可以在microsoft/LightGBM#5269和microsoft/LightGBM#5328中跟踪。
https://stackoverflow.com/questions/74568115
复制相似问题