[pycrypto] Install failure

Dean Macinskas dmacinskas at geobridge.net
Wed Oct 19 09:13:05 CST 2011



From: pycrypto-bounces at lists.dlitz.net [mailto:pycrypto-bounces at lists.dlitz.net] On Behalf Of Andrew Cooper
Sent: Wednesday, October 19, 2011 11:05 AM
To: pycrypto at lists.dlitz.net
Subject: Re: [pycrypto] Install failure

On 19/10/2011 15:58, Dean Macinskas wrote:


From: pycrypto-bounces at lists.dlitz.net<mailto:pycrypto-bounces at lists.dlitz.net> [mailto:pycrypto-bounces at lists.dlitz.net] On Behalf Of Andrew Cooper
Sent: Wednesday, October 19, 2011 10:52 AM
To: PyCrypto discussion list
Subject: Re: [pycrypto] Install failure

On 19/10/2011 15:46, Dean Macinskas wrote:

Platform: W7pro, 64-bit

I downloaded the latest version (2.3) and ran "python setup.py install".  Here's what I see:

C:\Users\dmacinskas\AppData\Local\Temp\pycrypto\pycrypto-2.3>python setup.py install
running install
running build
running build_py
running build_ext
warning: GMP library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
error: Unable to find vcvarsall.bat

C:\Users\dmacinskas\AppData\Local\Temp\pycrypto\pycrypto-2.3>

This appears to defeat the install, because subsequently importing Crypto.Cipher produces a "module not found" error.

Any advice?

Do you have MSCV/MSVS installed?  You need a C compiler for "python setup.py install" to work.

~Andrew

No, but I have Python installed on another system, also without MSCV/MSVS installed, and I've imported lots of packages without error.  Is PyCrypto a special case in this regard?

Not overly special - it is certainly not the only python extension written mainly in C.  The majority of extensions however are just python themselves, so don't require a C compiler.

~Andrew

Besides, I'd expect that the install module would have the C stuff already compiled, no?

Perhaps I don't have the C runtime installed.  Is there a specific one required?  I'm using Python 2.7.2.

Thanks,
dpm

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.dlitz.net/pipermail/pycrypto/attachments/20111019/66c94481/attachment.htm 


More information about the pycrypto mailing list