Importing matlab engine in Python, error: EnvironmentError: The installation of MATLAB Engine for Python is corrupted. Please reinstall it or contact MathWorks Technical Support for assistance.

4 ビュー (過去 30 日間)
Kyriakos Polymenakos
Kyriakos Polymenakos 2016 年 7 月 20 日
I am using Matlab 2015a, Python 2.7.10 on a mac running OS X El Capitan.
I installed the API without an error but when I open the python interpreter and try to import matlab.engine I get the Matlab installation is corrupted error.
The libpython2.7.dylib file can be found in
/System/Library/Frameworks/Python.framework/Versions/2.7/lib
and
$DYLD_LIBRARY_PATH
returns
/System/Library/Frameworks/Python.framework/Versions/2.7/lib
just like it's supposed to from what I read from other similar questions.
Is it a matter of compatibility between os 10.11 and the Matlab 2015a?

採用された回答

Bo Li
Bo Li 2016 年 7 月 21 日
What is the version of Python? Python Engine from MATLAB R2015a works with CPython 2.7.12 from python.org on Mac OSX 10.11.
  1 件のコメント
Kyriakos Polymenakos
Kyriakos Polymenakos 2016 年 7 月 21 日
I was running on 2.7.10 and updating to 2.7.12 solved the problem, thanks!

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

その他の回答 (1 件)

Bo Li
Bo Li 2016 年 7 月 20 日
Would you try MATLAB R2016a?

Community Treasure Hunt

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

Start Hunting!

Translated by