我使用 [pip install lightgbm] 并成功,但无法导入 lightgbm。我的 python 版本是 Python 3.5.4 |Anaconda 4.0.0 (64-bit)|。谁能指出一个可能的解决方案?谢谢你的帮助。
Traceback (most recent call last):
File "<ipython-input-1-bd597743fb90>", line 1, in <module>
import lightgbm
File "D:\Anaconda3\lib\site-packages\lightgbm\__init__.py", line 8, in <module>
from .basic import Booster, Dataset
File "D:\Anaconda3\lib\site-packages\lightgbm\basic.py", line 32, in <module>
_LIB = _load_lib()
File "D:\Anaconda3\lib\site-packages\lightgbm\basic.py", line 27, in _load_lib
lib = ctypes.cdll.LoadLibrary(lib_path[0])
File "D:\Anaconda3\lib\ctypes\__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "D:\Anaconda3\lib\ctypes\__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。[couln't find the module]