Running Matlab using Python gives 'No module named matlab.engine' error

前端 未结 2 1105
庸人自扰
庸人自扰 2020-12-11 19:11

I am trying to run Matlab code using Python. I tried to follow the instructions given on this Mathworks page.

When trying to import Matlab though Python, it was ins

2条回答
  •  星月不相逢
    2020-12-11 19:35

    pip install matlab gives you this, which installs a module with

    from numpy import *
    from pylab import *
    

    inside. I'm quite sure this is not what you wanted...

    I guess you tried importing the Matlab Compiler Runtime for Python. This has to be installed with the respective software from Mathworks though, it doesn't come through Python package index / pip. Check out the instrucions on their site.

提交回复
热议问题