easy_install is trying to install from the source. gmpy and gmpy2 are C extensions and require a compatible C compiler and other libraries (GMP, MPFR and MPC for gmpy2). Installing from a source is often difficult on Windows. Installers include a precompiled version of the extension.
One option is to extract the compiled binary from the installer. 7-Zip can open the installer file, and you can extract the binary file. In a standard Python installation, the extracted binary just needs to be placed in the package sites directory. If necessary, you can perform the extraction on another system and copy the file.
You can also use the zipfile module to extract the compiled extension. Here is an example. You will need to change the exact location of the files to reflect your system.
>>> import zipfile >>> f=zipfile.ZipFile('gmpy2-2.0.0.win-amd64-py3.3.exe','r') >>> f.namelist() ['PLATLIB/gmpy2-2.0.0-py3.3.egg-info', 'PLATLIB/gmpy2.pyd'] >>> f.extract('PLATLIB/gmpy2.pyd') 'C:\\Python33\\PLATLIB\\gmpy2.pyd'
source share