My MATLAB 2022a not talking to Python 3.9.13
45 ビュー (過去 30 日間)
OK, the usual newby start-up problems. I downloaded Python 3.9.13 in hopes I could call Python routines from MATLAB. Not sure what else I have to do to so MATLAB can call (talk to) Python. The very first recommended step in the relevant MATLAB help documentation seems to be to issue the command "pyenv" in MATLAB. Here is the result I get:
PythonEnvironment with properties:
Hmmm, not encouraging. Clearly, I need to do something else. But what? Is Python 3.9.13 not compatile with MATLAB 2022a?
Mohammad Sami 2022 年 7 月 26 日
It seems that python is not your on paths list, hence its not auto detected by Matlab.
You can manually set the executable path using pyenv function so that Matlab can load python.
executable = 'C:\Users\xxxxxx\AppData\Local\Programs\Python\Python37\pythonw.exe';
pe = pyenv('Version',executable);
The variable executable specifies the full path to the Python executable. You can look for the path where you installed python.