PyCrypto builds neither with MSVC nor MinGW

casevh casevh at
Tue Feb 7 00:27:17 CET 2012

On Feb 5, 6:40 am, Alec Taylor <alec.tayl... at> wrote:
> PIL, PyCrypto and many other modules require a C compiler and linker.
> Unfortunately neither install on my computer, with a PATH with the following:
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> C:\libraries\MinGW\msys\1.0\bin
> C:\libraries\MinGW
> C:\Python27\Scripts
> Output from G:\pycrypto>vcvarsall.bat
> Setting environment for using Microsoft Visual Studio 2010 x86 tools.
> Error output from G:\pycrypto>python build --compiler msvc
A couple of comments. You will need to complile either GMP or MPIR

MPIR is a windows friendly fork of GMP and I use it create Windows
for gmpy.
> Error output from G:\pycrypto>python build --compiler mingw32
> 1> log1 2> log2
> Log1:
> Log2:
> Will there ever be support for newer MSVC versions? - Also, why

Python 2.7 uses VS2008. I use the command line compiler included with
Microsoft's SDK 7.0 which is still available for download. I have
by-step build instructions included in gmpy's source download. I would
try to build MPIR and gmpy first and then adapt/modify the process for

MPIR home page:
gmpy source:

> doesn't even MinGW install PyCrypto for me?

> Thanks for all suggestions,
> Alec Taylor
Hope these comments help...

More information about the Python-list mailing list