Khurram Majeed Khurram Majeed - 2 years ago 568
Python Question

PyCrypto install error on Windows

I am trying to install PyCrypto 2.6 Library on my computer. But I keep getting the following error

D:\Software\Python\package\pycrypto-2.6>python build
running build
running build_py
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.

building 'Crypto.Random.OSRNG.winrandom' extension
error: Unable to find vcvarsall.bat

My System has
Windows 8 Pro 64-bit, Visual Studio Enterprise 2012 and Python 3.3

To fix the error I tried to set the Environment Variable
as advised by fmuecke in the post error: Unable to find vcvarsall.bat but it didn't work for me.

Can any one please advise me how to fix this error.

FYI, I don't to install VC2008 etc..

Answer Source

I managed to install PyCrypto 2.6 by using the prebuilt binary for Python3.3 from The Voidspace Python Modules.

It doesn't actually fix the error: Unable to find vcvarsall.bat for other package which don't have a prebuilt binaries available.

However it eliminates the need to build PyCrypto package, allowing me to install PyCrypto on my system without getting the error.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download