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

1 view (last 30 days)
>>
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 Comments
Robert Snoeberger
Robert Snoeberger on 31 May 2017
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 on 7 Jun 2017
Edited: sushmita das on 7 Jun 2017
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?

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!