-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 import name '_LGBMBaseCrossValidator' from 'lightgbm.compat' #5631
Comments
Thanks very much for the excellent report! I believe I see the issue. Can you please try installing conda install \
--yes \
-c conda-forge \
scikit-learn In this project Looks like #5271 added an import of |
Well, I follow this tutorial Install Python Interface (optional), however I wrongly think that I have installed these packages. Because I have installed some other packages like torch, xgboost and so on, which is omitted in dockerfile above.
After I install scikit-learn as you suggest, it works. Thanks @jameslamb ! |
Thanks for that @JisongXie . But I'm re-opening this. It is a bug... I've opened #5632 to address it, and we'll close this once that's merged. Thanks for helping us catch this bug! |
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
After I build lightgbm gpu version,
import lightgbm
gets errorReproducible example
I build lightgbm gpu version in my dockerfile with codes as follow:
It seems that
make
is succeessful.However,
python setup.py install
outputs some warnings,And then I try
import lightgbm
, it occurs error,Additional Comments
I try
apt-get install cmake
which cmake's version is 3.10.x.And the newest version of cmake which is 3.25.1.
But both are failing.
The text was updated successfully, but these errors were encountered: