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

时间:2019-04-23 10:19:40

标签: python matlab

我正在尝试使用matlab_wrapper与python运行matlab程序。我只是开始,甚至无法打开MatlabSession。我使用Visual Studio编译我的代码。

我已经阅读了一些有关该主题的内容,但是发现没有一个对我有帮助 (matlabroot是正确的,我是通过直接询问matlab来确定的)。

我的输入:

import matlab_wrapper

matlab = matlab_wrapper.MatlabSession(options='-nosplash',matlab_root='C:/Program Files/MATLAB/R2018a')

输出:

File "c:/Mandats/XV/UQ_LAB/python/test.py", line 4, in <module>
    matlab = matlab_wrapper.MatlabSession(options='-nosplash',matlab_root='C:/Program Files/MATLAB/R2018a')
  File "C:\Mandats\XV\UQ_LAB\python\Python37-32\lib\site-packages\matlab_wrapper\matlab_session.py", line 113, in __init__
    engine, libeng, libmx, version = load_engine_and_libs(matlab_root, options)
  File "C:\Mandats\XV\UQ_LAB\python\Python37-32\lib\site-packages\matlab_wrapper\matlab_session.py", line 317, in load_engine_and_libs
    libeng = Library('libeng')
  File "C:\Mandats\XV\UQ_LAB\python\Python37-32\lib\site-packages\matlab_wrapper\matlab_session.py", line 790, in __init__
    self._lib = ctypes.CDLL(name, **kwargs)
  File "C:\Mandats\XV\UQ_LAB\python\Python37-32\lib\ctypes\__init__.py", line 356, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

0 个答案:

没有答案