I have tried to follow the official instruction but it's still not working. I believe the reason is maci64. It seems we can only use matlabengine on maca64.
matlabengine installation problem with the default install location of MATLAB
44 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I am trying to install the MATLAB engine for Python on my computer and when I try
pip install matlabengine==9.14.3
I get the following ERROR:
ERROR: Could not build wheels for matlabengine, which is required to install pyproject.toml-based projects
With RuntimeError:
MATLAB R2023a installation not found. Install to default location, or add <matlabroot>/bin/maca64 to DYLD_LIBRARY_PATH, where <matlabroot> is the root of a MATLAB R2023a installation.
However, I have checked my installation location of MATLAB, which is:
So I really don't know which part is going wrong in my situation and how to fix it.
Antworten (1)
Dinesh
am 5 Jun. 2023
Hi Steven!
It seems like the issue you're facing may be due to a version conflict between MATLAB and Python. To solve this, ensure that your Python version is between 3.8 and 3.10 since MATLAB R2023a supports the MATLAB engine for that range of Python versions only.
If the problem persists, try uninstalling the current packages and then install the MATLAB engine using the Python setup script. You can find information on how to download and install the MATLAB engine using the setup script in this MATLAB documentation.
It is also recommended to check the MATLAB documentation on version compatibility to ensure that everything is correctly set up.
- MATLAB version compatibility documentation
- Install MATLAB engine API (Application Programming Interface) using setup.py script.
- MATLAB Engine for Python 3.8 on MacBook Pro with M1 chip
I hope this helps!
Thank you.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Call MATLAB from Python finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!