What version of python is supported by r2017a

조회 수: 12 (최근 30일)
Shafer
Shafer 2018년 3월 27일
답변: Steven Lord 2018년 3월 27일
I have Matlab R2017a on a Mac (os 10.11.6) and would like to install the Matlab engine for python. Here (<https://www.mathworks.com/help/matlab/getting-started-with-python.html>) it says that python 3.6 is supported, but when I try to install I get an error saying explicitly that python 3.6 is not supported. Do I need to update my Matlab version?
> cd /Applications/MATLAB_R2017a.app/extern/engines/python
> python setup.py install
Traceback (most recent call last):
File "setup.py", line 15, in <module>
'is %s' % _version)
OSError: MATLAB Engine for Python supports Python version 2.7, 3.4 and 3.5, but your version of Python is 3.6
>

채택된 답변

Steven Lord
Steven Lord 2018년 3월 27일
The online documentation is for the current release of MATLAB (which is currently release R2018a) and as such may describe functionality not available to you if you're using an older release.
According to the Release Notes support for Python 3.6 was introduced in release R2017b. In release R2017a, Python 3.4 and 3.5 are supported.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by