我正在使用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后,此问题似乎消失了。我什么也没做...所以如果有人可以解释一下,请给出答案,谢谢
答案 0 :(得分:0)
按照https://github.com/apache/incubator-mxnet/issues/1740
首先,尝试按照http://mxnet.incubator.apache.org/install/index.html?platform=Windows&language=Python&processor=CPU
您可能需要升级到64位python:https://www.python.org/downloads/windows/
您可能需要安装正确的Cuda版本-按照How to check for DLL dependency?(Dumpbin随Visual Studio一起提供)使用dumpbin检查DLL依赖项。