Microsoft has released a compiler package for Python 2.7 to make it easier for people to build and distribute their C extension modules on Windows.
The Microsoft Visual C++ Compiler for Python 2.7 is available from: http://aka.ms/vcpython27
This package contains all the tools and headers required to build C extension modules for Python 2.7 32-bit and 64-bit (note that some extension modules require 3rd party dependencies such as OpenSSL or libxml2 that are not included). Other versions of Python built with Visual C++ 2008 are also supported.
You can install the package without requiring administrative privileges and, with the latest version of setuptools, use tools such as pip, wheel, or a setup.py file to produce binaries on Windows.
(Note: This version of Visual C++ is no longer supported by Microsoft, and so new features, support, or bug fixes are not available.)