can't run a python function from matlab

조회 수: 1 (최근 30일)
Kfir Weissman
Kfir Weissman 2021년 12월 23일
댓글: Kfir Weissman 2021년 12월 23일
hi, i try to run my order_files.py file.
i already add my venv from anaconda to matlab and when i run "pyenv" in matlab its
found it.
the problem is when i run the function "hel" in the order_files.py file from matlab i get this error:
"Unable to resolve the name py.order_files.hel."
what can i do about that?
  댓글 수: 2
Anushka Perera
Anushka Perera 2021년 12월 23일
Did you add the current folder to the Python search path? Something like this:
if count(py.sys.path,'') == 0
insert(py.sys.path,int32(0),'');
end
Kfir Weissman
Kfir Weissman 2021년 12월 23일
Which folder?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by