ImportError: No module named 'matlab' , DLL load failed

1 次查看(过去 30 天)
>>
While starting Matlab API for Python after providing the command import matlab.engine it gives me an error: ImportError: No module named 'matlab' Although the installation of python in matlab api was succesfull , there is no module named matlab in python. Can anyone help me? Thank You!
  8 个评论
Robert Snoeberger
Robert Snoeberger 2017-5-31
This is just an observation. In your original question you used "python". Then, in your latest comment you used "python.exe" that appears to be installed in "C:\Program Files\MATLAB|R2016a\extern\engines\python\Python34\". Are you using two different Python installations? That could explain the "No module named 'matlab'" error. You didn't install matlab.engine in the "C:\Program Files\MATLAB|R2016a\extern\engines\python\Python34\" installation.
sushmita das
sushmita das 2017-6-7
编辑:sushmita das 2017-6-7
No actually I am using "C:\Program Files\MATLAB|R2016a\extern\engines\python\Python34\" . Do I need to install matlab.engine in Python34 as well? Why is it required to install matlab.engine inside matlab?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call MATLAB from Python 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by