필터 지우기
필터 지우기

Installation of Matlab Engine API Error: The installation of MATLAB is corrupted.

조회 수: 12 (최근 30일)
I'm running on Windows 10, Python 3.10.6, MATLAB R2022b
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?

채택된 답변

Suchitra
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.
  댓글 수: 1
Peter
Peter 2022년 12월 6일
recieved a new error with that, a permissions/cant create \dist, no access error.
This is a work laptop so I don't have admin rights.
found potential solution, downloading files https://pypi.org/project/matlabengine/#files, extracting .tar.gz files to a folder within "Downloads" and installing there within my downloads folder where I had permissions. It installed to my "Python310\lib\site-packages" folder and once there I could copy the folder to "~\lib\site-packages" for my other environments/spyder etc. it now it appears to be working

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by