Calling Matlab engine from Python fails

조회 수: 1 (최근 30일)
yp78
yp78 2020년 4월 20일
편집: yp78 2020년 4월 20일
Hiya,
I follow the installation process for Matlab engine API explained in:
I use Matlab R2020a, Spyder4(Anaconda3)/Python 3.7 distributions in my Windows OS.
I managed to install the library in the default folder
C:\Program Files\MATLAB\R2020a\extern\engines\python\build\lib\matlab\engine
But when I run the following command in Spyder
import matlab.engine
it returns an error:
ModuleNotFoundError: No module named 'matlab'
Could anyone please tell me what am doing wrong?

답변 (1개)

Steven Lord
Steven Lord 2020년 4월 20일
That page states "You might need administrator privileges to execute these commands." Do you have administrator privileges?
  댓글 수: 1
yp78
yp78 2020년 4월 20일
편집: yp78 2020년 4월 20일
Yes I do. Sorry I re-wrote my question as I realised the point you mentioned. Now I managed to install the engine, but cannot call it from Python. Would you have any insight to it?

댓글을 달려면 로그인하십시오.

카테고리

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