pip install'lightgbm==4.1.0'python -c"from lightgbm import log_evaluation"echo$?#0 I suspect that one of the following is happening: you are using a local file calledlightgbm.pyand that's conflicting with the installed LightGBM library solution: rename such files to anything other thanlightgbm...