Cannot built Matlab.engine python package

17 次查看(过去 30 天)
I am trying to build python 2 matlab.engine package on Mac I tried Ventura and BigSur with the following matlab versions: matlab_R2022b_maci64 and matlab_R2022a_maci64
Installing for Python 3 works but for Python 2.7 does not even though Python 2.7 is listed as supported. The error I am getting is below. Any hints to resolve this?
File "setup.py", line 84, in _generate_arch_file
_arch = self._find_arch(_bin_dir)
File "setup.py", line 67, in _find_arch
raise EnvironmentError('The installation of MATLAB is corrupted. '
EnvironmentError: The installation of MATLAB is corrupted. Please reinstall MATLAB or contact Technical Support for assistance.

采纳的回答

Vadim Chavarha
Vadim Chavarha 2022-10-19
In case someone else runs into this issue. pip installation works only with Python 3. For Python 2 use
python setup.py install

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call MATLAB from Python 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by