Installation of Matlab Engine API Error: The installation of MATLAB is corrupted.
6 次查看(过去 30 天)
显示 更早的评论
I'm running on Windows 10, Python 3.10.6, MATLAB R2022b
I'm trying to install the MATLAB Engine API from these instructions. https://www.mathworks.com/help/matlab/matlab_external/python-setup-script-to-install-matlab-engine-api.html
I've tried from both the MATLAB Command Window, and from the CMD terminal and in both cases I recieve the following error message output
running build
running build_py
error: The installation of MATLAB is corrupted. Please reinstall MATLAB or contact Technical Support for assistance.
MATLAB is fine, reinstalling doesn't fix the issue and gives the same error. MATLAB runs on its own without a problem.
Is there a compatibility issue or something I am missing?
0 个评论
采纳的回答
Suchitra
2022-12-6
Hello Peter,
From your question I can understand that you are facing an issue while installing MATLAB Engine for Python.
In order to address this issue, MATLAB Engine for Python must be installed as documented. The installation procedure will not work correctly if you do not cd into the matlabroot/extern/engines/python directory and run
python setup.py install
or if you first copied this directory to some other location and then cd-ed into there.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!