Search code examples
pythonubuntumachine-learninglightgbm

Why ImportError: No module named lightgbm


My OS is Ubuntu, and I've followed the official installation guide to install lightgbm. However, when I import it, this error is raised:

ImportError: No module named lightgbm

How can I solve this?

Do I also need to go to /python-package folder to run setup.py after running those linux commandlines?


Solution

  • Besides running those linux command lines. I also need to go to /python-package then run 'python setup.py install'.