Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to compile python code that makes calls to matlab to .exe

I have a python code that load deep learning model and test on images, some postprocessing step are in Matlab. Python code calls Matlab to get the task done. How can I compile this code to .exe?

I used py2exe to build .exe file. It works, but initializing Matlab (import matlab.engine) remains a problem.

`
    $ ./runPython.exe
Traceback (most recent call last):
  File "runPython.py", line 2, in <module>
  File "matlab\__init__.pyc", line 24, in <module>
  File "matlab\mlarray.pyc", line 31, in <module>
  File "matlab\_internal\mlarray_sequence.pyc", line 3, in <module>
ImportError: No module named mlarray_utils`

Comments