- The target machine must have a supported version of Python installed.
- The installed version of Python must be discoverable by MATLAB.
- If the py. command is calling a custom Python module, than it must be on the Python search path.
Is it possible to compile MATLAB programs that contain Python code using MATLAB Compiler?
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 12 Mär. 2018
Bearbeitet: MathWorks Support Team
am 15 Nov. 2023
I tried compiling my MATLAB program with Python code into a standalone application, but got the following error message when running it:
Undefined variable "py" or function "py.command"
Akzeptierte Antwort
MathWorks Support Team
am 15 Nov. 2023
Bearbeitet: MathWorks Support Team
am 15 Nov. 2023
Yes, this workflow is supported.
But please pay attention to what mentioned in the link below before compiling your code:
Some possible causes for this error are:
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!