Matlab "pyenv" doesn't respect user path / user env configured with anaconda
1 view (last 30 days)
Show older comments
Tucker Downs on 19 Dec 2021
I am trying to run a python script from matlab and get the results, my script requires python 3 and several packages that I have installed and cofigured using anaconda workspaces. When I run !which python it only finds the MacOS default python location, which is not the correct version and does not have the correct packages. pyenv reveals that matlab is only finding the OSx default python and libraries.
In my terminal I have used anaconda to maintain several python environments required for different projects and I have correctly configured my default environment before launching matlab. How can I get matlab to respect my python environment management, like every other piece of software that I regularly use does?
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!