Matlab 2016a crashed by calling python function

조회 수: 1 (최근 30일)
Kyle Wang
Kyle Wang 2016년 6월 23일
답변: Robert Snoeberger 2016년 9월 30일
OS: windows 10 64bit
Matlab: 2016a 64bit
Python: Enthought Python,
Everything is installed into the default folder
Matlab will quit without any warning by executing
py.help('eval')
Could any one please suggest a solution? Many thanks, Kyle.
  댓글 수: 2
Robert Snoeberger
Robert Snoeberger 2016년 6월 25일
편집: Robert Snoeberger 2016년 7월 12일
I just noticed that my comment is irrelevant, so I deleted it. I mistakenly read your OS as OS X. I just realized that you are actually using Windows 10.
Sathish Kumar Narayanan
Sathish Kumar Narayanan 2016년 9월 30일
Same with me. Any help would be greatly appreciated
System Configuration - Windows 7 64 bit. Matlab 2016a 64 bit,
Python: 2.7.11 | 64-bit | (default, Jun 11 2016, 11:33:47) [MSC v.1500 64 bit (AMD64)]
Python executable: c:\users\<username>\appdata\local\enthought\canopy\user\scripts\python.exe

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

답변 (1개)

Robert Snoeberger
Robert Snoeberger 2016년 9월 30일
Is there a file "pyvenv.cfg" in either of the following locations?
  • c:\users\<username>\appdata\local\enthought\canopy\user\
  • c:\users\<username>\appdata\local\enthought\canopy\user\scripts\
If there is, locate the line "home = [home path]" in the file. Then, use the "python.exe" executable found in [home path] to set the Python version within MATLAB:
>> pyversion [home path]\python.exe

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by