Why ImportError: No module named lightgbm

dlwlrma picture dlwlrma · May 27, 2017 · Viewed 25.2k times · Source

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?

Answer

dlwlrma picture dlwlrma · May 27, 2017

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