Borrar filtros
Borrar filtros

Try to install MATLAB engine API for python

126 visualizaciones (últimos 30 días)
Yovel
Yovel el 7 de Abr. de 2024
Comentada: Yovel el 8 de Abr. de 2024
Hi,
i have:
Python 3.11.8
Matlab 2023b
I can't install Matlab engine to create communication between Python and Matlab
I tried many versions but nothing works.
example error I get:
RuntimeError: No compatible MATLAB installation found in Windows Registry. This release of MATLAB Engine API for Python is compatible with version 24.1. The found versions were 23.2. [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for matlabengine
Failed to build matlabengine
ERROR: Could not build wheels for matlabengine, which is required to install pyproject.toml-based projects
help? :/

Respuesta aceptada

Kojiro Saito
Kojiro Saito el 7 de Abr. de 2024
It seems that you're installing R2024a version of MATLAB Engine API.
The GitHub respository (https://github.com/mathworks/matlab-engine-for-python) has multiple branches and now R2024a is default.
You're using R2023b, so change the branch to R2023b and the URL would be the following.
Then, you can install with pip specifying the version 23.2.3 (for R2023b).
$ python -m pip install matlabengine==23.2.3

Más respuestas (0)

Categorías

Más información sobre Call MATLAB from Python en Help Center y File Exchange.

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by