unable to resolve the name py.function error
7 ビュー (過去 30 日間)
I am trying to call python in Matlab on Mac machine but i am not able to run any kind of (py.blabla) command, it says 'Unable to resolve the name py.myfunction'.
I used the command pyenv('Version' , 'Location of python') to load the python in Matlab.
And when i enter pyenv command the status says NotLoaded, please look at the screenshot in attachment.
kindly help me resolve the Issue.
Thanks & Regards,
回答 (1 件)
Al Danial 2022 年 5 月 19 日
Couple of things to try:
1) change the execution mode to InProcess
>> pyenv('ExecutionMode', 'InProcess')
2) open a terminal and verify that the Python installation you're pointing to works
Which version of matlab is this?