run python script with mcc compiled matlab
显示 更早的评论
Hi,
I am trying to compile a matlab script that contains a python function (used with pyrunfile).
This code is running with no issues with a regular matlab run, but failed to run after compiling with mcc.
I added the python function path to the mcc, using -a, with no help.
The error that I got is
'MATLAB:Pyrunfile:FileNotFound'.
I printed the main function path using "ls". I see all matlab file names and folder names in this print, except the folder that contains the python function.
Any ideas?
1 个评论
回答(1 个)
Taylor
2024-11-22
0 个投票
Double check that you have the supported version of the reference implementation (CPython) installed on your system. See these previous posts for more information
类别
在 帮助中心 和 File Exchange 中查找有关 Python Package Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!