机器学习笔记(lightgbm):OSError: [WinError 126] 找不到指定的模块

    import lightgbm as lgb
  File "D:\Python\Python36-32\lib\site-packages\lightgbm\__init__.py", line 8, in
    from .basic import Booster, Dataset
  File "D:\Python\Python36-32\lib\site-packages\lightgbm\basic.py", line 32, in
    _LIB = _load_lib()
  File "D:\Python\Python36-32\lib\site-packages\lightgbm\basic.py", line 27, in _load_lib
    lib = ctypes.cdll.LoadLibrary(lib_path[0])
  File "D:\Python\Python36-32\lib\ctypes\__init__.py", line 426, in LoadLibrary
    return self._dlltype(name)
  File "D:\Python\Python36-32\lib\ctypes\__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)

OSError: [WinError 126] 找不到指定的模块。


lightgbm 未安装,进入WindowsPowerShell ->pip install lightgbm 安装时异常,lightgbm只支持64位Python,

卸载32位Python,重新安装64位Python后正常(相应其他的库也需重新安装,如果不知道要装哪些,可以运行报错时,再根据报错信息重装相应的第三方库)

你可能感兴趣的:(Python)