What version of python is supported by r2017a
12 views (last 30 days)
Show older comments
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
>
0 Comments
Accepted Answer
Steven Lord
on 27 Mar 2018
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 Comments
More Answers (0)
See Also
Categories
Find more on Call MATLAB from Python in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!