MATLAB: Install the Python engine error message

MATLAB

I go the following error message. What to do?
>> cd (fullfile(matlabroot,'extern','engines','python'))
>> system('python setup.py install')
'python' is not recognized as an internal or external command,
operable program or batch file.
ans =
1.00
>>

Best Answer

Please make sure that you have downloaded 64bit Python installer from https://www.python.org/downloads/.
Supported Python versions are listed in here. As of R2020a, 2.7, 3.6 and 3.7 are supported.
After installation is complete, please make sure you have added the install folder (for example, C:\Program Files\Python\Python38) to environment variable PATH as described in this document.
Related Question