I'm trying to run Python from MATLAB, but when I try I got the message:
py.list({'Monday','Tuesday','Wednesday','Thursday','Friday'})
Unable to resolve the name py.list.
I also have tried pyenv
pyenv
ans =
PythonEnvironment with properties:
Version: "3.7"
Executable: "C:\Users\Familia\.conda\envs\matlab\python.exe"
Library: "C:\Users\Familia\.conda\envs\matlab\python37.dll"
Home: "C:\Users\Familia\.conda\envs\matlab"
Status: NotLoaded
ExecutionMode: InProcess
Could be my problem the Status? NotLoaded? How can I change that for Loaded? Since this path is with Conda, I also tried to change for another Python version I have installed without Anaconda, with this command:
pe = pyenv('Version','C:\Users\Familia\AppData\Local\Microsoft\WindowsApps\python.exe')
Error using pyenv
Path argument does not specify a valid executable.
How can I overcome that?