OSError:[WinError 126]找不到在Pycharm中导入mxnet的指定模块

时间:2018-08-26 14:41:26

标签: python pycharm mxnet

我正在使用Pycharm,将mxnet导入到项目中

我认为我遇到文件丢失错误,但找不到解决方法

Traceback (most recent call last):
  File "C:/E/ZJL_Test_package/ZJL_Test/feature/extract_image.py", line 1, in <module>
from mxnet import nd, image
  File "C:\D\Programs\Python37\lib\site-packages\mxnet\__init__.py", line 25, in <module>
from . import engine
  File "C:\D\Programs\Python37\lib\site-packages\mxnet\engine.py", line 23, in <module>
from .base import _LIB, check_call
  File "C:\D\Programs\Python37\lib\site-packages\mxnet\base.py", line 113, in <module>
    _LIB = _load_lib()
  File "C:\D\Programs\Python37\lib\site-packages\mxnet\base.py", line 105, in _load_lib
lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
  File "C:\D\Programs\Python37\lib\ctypes\__init__.py", line 356, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

Pycharm和Python的版本均为最新(最新),具有64位Windows 10和64位Python,64位PyCharm

重新启动计算机并再次打开PyCharm后,此问题似乎消失了。我什么也没做...所以如果有人可以解释一下,请给出答案,谢谢

1 个答案:

答案 0 :(得分:0)

按照https://github.com/apache/incubator-mxnet/issues/1740