-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to install lightgbm with pip in macos 12.3.1 (chip M1) #5269
Comments
Just a note: maybe the reason in the AppleClang minor version. Version in this issue is |
Has anyone found a workaround for this? I've tried to use a different version of gcc ( |
not on my side... that's why I turned to install lightgbm with conda :( |
I have the same issue!
|
Sorry for the very long delay. In the current state of LightGBM, it's possible to build Python package from source on the M1/M2/M3 macs. I have an M2 mac laptop now, and am able to build the latest version of LightGBM (and the Python package, See #6249 (comment) for exact commands to do that. I've also found I'm able to build pip install \
--no-binary lightgbm \
'lightgbm>=4.3.0' To make this easier in the future, and now that GitHub Actions provide free arm64 macOS runners, we're actively working on providing wheels for the arm64 macs on PyPI, so that in the near future you'll be able to just do Given all that, I'm going to close this issue. Thank you all for using LightGBM, and sorry it's taken so long to support the M1/M2/M3 macs. These reports with specific commands and logs have been very helpful in diagnosing the issues 😊 |
Description
hello, I'm not able to install ligthtgbm with pip on my macos 12.3.1 (chip Apple M1 max).
Reproducible example
I run
pip install lightgbm==3.3.2
an I get the following log error:Environment info
LightGBM version or commit hash: 3.3.2
Command(s) you used to install LightGBM
The text was updated successfully, but these errors were encountered: