MATLAB and Simulink Requirements

Versions of Python Compatible with MATLAB Products by Release 

The table gives the Python versions which are compatible with the MATLAB Interface to Python, MATLAB Engine for Python, and MATLAB Compiler SDK for Python. See Note below for the Python Client Library for MATLAB Production Server.

MATLAB Version Python 2 Compatibility Python 3 Compatibility
R2022b 2.7 3.8, 3.9, 3.10
R2022a 2.7 3.8, 3.9
R2021b 2.7 3.7, 3.8, 3.9
R2021a 2.7 3.7, 3.8
R2020b 2.7 3.6, 3.7, 3.8
R2020a 2.7 3.6, 3.7
R2019b 2.7 3.6, 3.7
R2019a 2.7 3.5, 3.6, 3.7
R2018b 2.7 3.5, 3.6
R2018a 2.7 3.5, 3.6
R2017b 2.7 3.4, 3.5, 3.6
R2017a 2.7 3.4, 3.5
R2016b 2.7 3.3, 3.4, 3.5
R2016a 2.7 3.3, 3.4
R2015a 2.7 3.3, 3.4
R2015b 2.7 3.3, 3.4
R2014b 2.7 3.3 

Notes:

  • MATLAB Compiler SDK is not compatible with Python in R2014b or R2015a. The first release that is compatible with Python is R2015b.
  • For MATLAB R2019b and earlier, Python Client Library for MATLAB Production Server is only compatible with Python 2.7. For MATLAB R2020a and later, the Python versions supported by the Python Client Library for MATLAB Production Server are identical to those in the table above.
  • For MATLAB R2022b, Python Client Library for MATLAB Production Server is not compatible with Python 2.7.