I installed Python on my Apple M1 using miniforge
brew install --cask miniforge
but I am not able to use a Conda environment on MATLAB:
>> pyenv('Version', '/opt/homebrew/Caskroom/miniforge/base/envs/matpy39/bin/python3')
ans =
PythonEnvironment with properties:
Version: "3.9"
Executable: "/opt/homebrew/Caskroom/miniforge/base/envs/matpy39/bin/python3"
Library: "/opt/homebrew/Caskroom/miniforge/base/envs/matpy39/lib/libpython3.9.dylib"
Home: "/opt/homebrew/Caskroom/miniforge/base/envs/matpy39"
Status: NotLoaded
ExecutionMode: InProcess
>> py.list({1})
Unable to resolve the name py.list.
However, if I use Macs built in python version, it does work:
>> pyversion('/usr/bin/python3')
>> py.list({1})
ans =
Python list with no properties.
[1.0]
I am not sure what to do so that MATLAB uses a specific Conda environment