MATLAB (R2020b, R2021a, R2021b) Engine API for Python (3.8) can not be installed, WHY???
97 次查看(过去 30 天)
显示 更早的评论
Dear all,
I have met a problem of instlling matlab engine to use matlab with my python (Python 3.8.0).
In requirements is stated compatibility of python 3.8 for all versions of mythlab that i have on my PC
R2021b Python(2.7) Python (3.7, 3.8, 3.9)
R2021a Python(27 Python(23.7, 3.8)
R2020b Python(27 Python(23.6, 3.7, 3.8)
- When I tried to install engibe following an official recomendation I have all the time the answer:
MATLAB Engine API for Python is compatible with version 9.13. The found versions were 9.10, 9.11, 9.12.
[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
2. I have removed all matlab versions and installed Mathlab R2022b (unfortunately without license: test version) and finally the answer:
C:\Users\Sergii>python -m pip install matlabengine
Collecting matlabengine
Using cached matlabengine-9.13.7.tar.gz (18 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: matlabengine
Building wheel for matlabengine (pyproject.toml) ... done
Created wheel for matlabengine: filename=matlabengine-9.13.7-py3-none-any.whl size=17011 sha256=a45f57c263e5a37c009dda77ac1cc4f53b0966bed1b0f4013f0a8a34e6689249
Stored in directory: c:\users\sergii\appdata\local\pip\cache\wheels\2b\4e\a8\98634ae92a15eef231641a38a6e7643ea6dfc6d04edbb90212
Successfully built matlabengine
Installing collected packages: matlabengine
Successfully installed matlabengine-9.13.7
How to install the engine for theMatlab version 2021b, for which I have a license?????
5 个评论
Kevin Henryk Wronski
2023-12-14
Hallo together,
I have a simiular issue, however when I try to install the Matlab-engine via command promt I get the following response.
I use the Python Version 3.10 and Matlab R2023a.
Any suggestions are welcome.
回答(1 个)
Divyanshu
2023-3-24
The following documentation specifies that Python 3.8 is compatible with MATLAB R2021. So, maybe you can try removing all the versions which are installed in the system and try with a fresh installation.
But before installing, verify your Python and MATLAB configurations. Please go through these steps to verify the configurations:
- Check that your system has a supported version of Python and MATLAB R2014b or later. For more information, see Versions of Python Compatible with MATLAB Products by Release.
- To check that Python is installed on your system, run Python at the operating system prompt. Make sure that the Python path is included in your system path environment variable.
- Add the folder that contains the Python interpreter to your path, if it is not already there.
Refer to the following documentation for further steps to install MATLAB Engine and getting started:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call MATLAB from Python 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!