Cannot built Matlab.engine python package

17 vues (au cours des 30 derniers jours)
Vadim Chavarha
Vadim Chavarha le 19 Oct 2022
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.

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Call MATLAB from Python dans Help Center et File Exchange

Tags

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by