网上很多安装教程有误,或者是太老???
不如直接看官网教程
参考官网
https://github.com/Microsoft/LightGBM/blob/master/docs/Installation-Guide.rst#osx
https://github.com/Microsoft/LightGBM/tree/master/python-package
LightGBM depends on OpenMP for compiling, which isn't supported by Apple Clang.
Please install gcc/g++ by using the following commands:
brew install cmake brew install gcc --without-multilib

本文档介绍了在Mac上通过Anaconda安装LightGBM时遇到的问题及解决方案。首先,由于Apple Clang不支持OpenMP,需要安装gcc/g++。接着,按照官方指南安装LightGBM。然而,Anaconda Navigator中没有LightGBM的包,且安装的LightGBM在本地Python环境中,而JupyterLab使用的是Anaconda自己的Python环境。为在JupyterLab中使用LightGBM,可以将本地Python环境中的LightGBM包复制到Anaconda的Python环境中。
最低0.47元/天 解锁文章
2995





