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