Matlab 2016a crashed by calling python function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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')
when I was trying the example at http://au.mathworks.com/help/matlab/matlab_external/call-python-eval-function.html
Could any one please suggest a solution? Many thanks, Kyle.
2 Kommentare
Robert Snoeberger
am 25 Jun. 2016
Bearbeitet: Robert Snoeberger
am 12 Jul. 2016
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
am 30 Sep. 2016
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
Antworten (1)
Robert Snoeberger
am 30 Sep. 2016
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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Call Python from MATLAB 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!