Access https://www.python.org/downloads
and
scroll down to the Looking for a specific release section.
Find the 2.7 version you want and click Download.
Click the format you want, and follow the online instructions.
For 64-bit MATLAB® on Microsoft® Windows® systems, select the 64-bit Python® version, called Windows x86-64 MSI installer.
For a list of the currently-supported versions of Python, see Getting Started.
Access https://www.python.org/downloads
and
scroll down to the Looking for a specific release section.
Find the 3.x version you want and click Download.
Click the format you want, and follow the online instructions.
For 64-bit MATLAB on Windows systems, select the 64-bit Python version, called Windows x86-64 MSI installer.