- 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?
5 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2018 年 3 月 12 日
編集済み: MathWorks Support Team
2023 年 11 月 15 日
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"
採用された回答
MathWorks Support Team
2023 年 11 月 15 日
編集済み: MathWorks Support Team
2023 年 11 月 15 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Python Package Integration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!