MATLAB engine for python

2 ビュー (過去 30 日間)
Siheng
Siheng 2014 年 10 月 3 日
コメント済み: Muhammad Sinan 2020 年 9 月 18 日
I have downloaded the newest MATLAB2014b and tried the MATLAB engine for python. The platform is MacOS 10.9. I have no problems running the setup.py in /Applications/MATLAB_R2014b/bin/extern/engines/python/setup.py After that, when I try
import matlab.engine
it always crashes the python and shows the error message:
Segmentation fault: 11

採用された回答

Sarah Palfreyman
Sarah Palfreyman 2014 年 10 月 3 日
編集済み: Sarah Palfreyman 2014 年 10 月 3 日
Hi Siheng,
Which version of Python are you using? Do you have more than one version of Python installed (ex verisons 2.7.5 and 2.7.2)?
Can you try reinstalling the Python engine by calling
/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python setup.py install
and then try calling Python by the correct full PATH
/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python
Thanks, Sarah
  3 件のコメント
Sarah Palfreyman
Sarah Palfreyman 2014 年 10 月 3 日
編集済み: Sarah Palfreyman 2014 年 10 月 15 日
Yes, you should be fine with Python 2.7.8. You may also need to specify the enviroment variable DYLD_LIBRARY_PATH to the path of lib folder in the Python 2.7.8 install directory.
For example using csh shell : setenv DYLD_LIBRARY_PATH /Library/Frameworks/Python.framework/Versions/2.7/lib
Muhammad Sinan
Muhammad Sinan 2020 年 9 月 18 日
Hello dear Sarah Palfreyman.
I have installed the MATLAB R2020a version and followed this video [https://www.youtube.com/watch?v=WufMGW5Bv4g&t=470s]. But after all the jupyter notebook does not run and says the "matlab engine is not installed".

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by