pythonmatlabcmdmatlab-engine

Installing matlab for python


I'm trying to install matlab engine for python but doesn't work, I'm doing that from command line and doesn't display anything. These are my steps: I have add python tho my environment path than I found matlabroot and I get in with cd in command line I have installed matlab kernel than I run the code python setup.py install --prefix='C:\ProgramData\Anaconda3'

But doesn't work, and I have no message or error. What should I do? enter image description here


Solution

  • Well, now I know. First, find matlabroot on matlab : C:\Program Files\MATLAB\R2020a Than, go to conda prompt and get in the matlab directory : C:\Program Files\MATLAB\R2020a\extern\engines\python then type on conda prompt : python setup.py install

    Make sure you have python add to the env path