关键字
MacOS, MATLAB Engine, Python 2.7, Python 3.6, Permission Denied,Administrator
简介
在Mac OS X下,对Anaconda中的Python 3.6(而非Mac OS自带的Python 2.7)安装MATLAB Engine API,以实现Python对MATLAB函数的调用。
具体实现
基础方法见:
https://www.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html
我采用的是上述地址中在MATLAB command promt进行操作的方法,非terminal。
MATLAB command promt中直接输入以下命令:
cd (fullfile(matlabroot,'extern','engines','python'