Use LightGBM in Jupyter to display "No module named lightgbm"

I have installed and used LightGBM in Pycharm before, and then I switched to Jupyter to import it directly, but it was reported that the module could not be found.

Solutions to other blog posts on the Internet: https://blog.csdn.net/weixin_32087115/article/details/82757380

(Partial screenshot)

But I did not find the lib_lightgbm.so file mentioned in the screenshot, but thinking of him this method seems to be copying the LightGBM module.

Previously used in Pycharm was in the tensorflow environment , and Jupyter was started and run in the base environment , so I installed LightGBM directly in the base environment again .

Re-run without error.

END

Guess you like

Origin blog.csdn.net/qq_41904729/article/details/115285238
Recommended