I have the following environment:
- Windows 10
- Python 3.8.10
- MATLAB R2020b
I'm trying to install matlabengine
(pip install matlabengine
) package, and I'm getting error:
RuntimeError: No compatible MATLAB installation found in Windows Regitry. This release of MATLAB Engine API for Python is compatible with version 9.13. The found version were 9.9
- What am I missing ? (according to https://pypi.org/project/matlabengine/) it seems I'm using the right versions.
- How can I check the versions I have (9.9 or 9.13 because as I wrote above I have MATLAB R2020b and Python 3.8.10).
CodePudding user response:
You can try to install specific version of matlabengine.
pip install matlabengine==9.13.1
If they cannot find your version, you might need to update pip.
Also, you can check your current matlabengine version.
pip show matlabengine
CodePudding user response:
The error is about the MATLAB version, not the version of matlabengine
(the Python module).
You wrote that you have MATLAB 2020b. That is the release name for MATLAB version 9.9, as can be seen in this table on Wikipedia.
As can be read on the description of matlabengine 9.13.1, this engine version requires MATLAB release R2022b (= 9.13).
To use matlabengine
with MATLAB 2020b, install version 9.9.1:
python -m pip install matlabengine==9.9.1