-
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
[python-package] Cannot install LightGBM #6035
Comments
Thanks for using LightGBM. LightGBM expects by default to find OpenMP installed locally, and to be able to dynamically link to it. It appears from this line that you don't have it installed.
Since it appears from the logs you provided that you're on a Mac, you can install it like this: brew install libomp Alternatively, if you don't want to use OpenMP, you can install a version of If you absolutely have to stay on pip install 'pip<23.1'
pip install \
--no-binary lightgbm \
--install-option='--nomp' \
'lightgbm==3.3.2' The If you can upgrade to pip install --upgrade pip
pip install \
--no-binary lightgbm \
--config-settings=cmake.define.USE_OPENMP=OFF \
'lightgbm>=4.0.0' Many of these details, and others about installation of the Python package, are available at https://github.com/microsoft/LightGBM/blob/master/python-package/README.rst. |
Also note... I've edited your post to make the difference between text you wrote, commands you ran, and logs from those commands clearer. Please see https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax for information on how to format text on GitHub. |
Thanks, I finally installed LightGBM, also I'll look at the guide before I write a problem. |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Description
I am trying to install LightGBM but whenever I try to install it, I get this error
Reproducible example
Environment info
LightGBM version or commit hash:
I used PyCharm's library installation and then I tried installing with the pip command. Also, I tried to install
3.3.2
version instead of the latest versionThe text was updated successfully, but these errors were encountered: