フィルターのクリア

Matlab engine for python not working in Mac

5 ビュー (過去 30 日間)
Ashwin Krishnakumar
Ashwin Krishnakumar 2022 年 6 月 19 日
回答済み: Ayush 2023 年 9 月 4 日
Hello. I have the same error.
ModuleNotFoundError: No module named 'matlabmultidimarrayforpython'
This is the output when I run "python setup.py install --user" from the folder /Applications/MATLAB_R2021a.app/extern/engines/python . My installation folder.
It seems to install perfectly.
But when I run a script with the following error occurs. This is in a mac machine,
I do not however see .pyd file after matlab python engine.
Requesting your suggestions .

回答 (1 件)

Ayush
Ayush 2023 年 9 月 4 日
Kindly post the reproduction steps or the script so that I can reproduce the error on my end.
Generally 'ModuleNotFoundError' occurs when module is not found in the directory.
One way to potentially resolve this issue is to point the "PYTHONPATH" environment variable to the directory containing the install of MATLAB Engine.
You can use the following troubleshooting steps as mentioned in the documentation:
Hope this helps!

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by