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

安装mxnet时报错:

File "D:\anaconda\lib\site-packages\mxnet\base.py", line 213, in <module>
    _LIB = _load_lib()
  File "D:\anaconda\lib\site-packages\mxnet\base.py", line 204, in _load_lib
    lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
  File "D:\anaconda\lib\ctypes\__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。

原因时安装gpu版时一定要与cuda的版本对应,我是cuda9.0,卸载了mxnet8.0,安装9.0后成功导入

pip uninstall mxnet-cu80
pip install --pre mxnet-cu90 -i https://pypi.douban.com/simple

你可能感兴趣的:(OSError: [WinError 126] 找不到指定的模块)