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일

0 개 추천

In case someone else runs into this issue. pip installation works only with Python 3. For Python 2 use
python setup.py install

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Call MATLAB from Python에 대해 자세히 알아보기

제품

릴리스

R2022b

태그

질문:

2022년 10월 19일

답변:

2022년 10월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by