- 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?
조회 수: 4 (최근 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!