
Question:
I'm trying to install PyCrypto 2.4.1 on my local machine (Windows 7 64bit). But, I got following messages on 'python setup.py install'.
<blockquote>running install
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
</blockquote>What I want to ask is this: can I just copy lib
folder which contains Crypto
folder in it to where my app is located? I'm developing a Google AppEngine app using Python27 runtime, and, I just need local library for PyCrypto.
Actually, I just needed some compiled version of PyCrypto for Windows 64bit.
<ul><li>PyCrypto version: 2.3.1 </li> <li>Python version: 2.7.1 </li> <li>Target platform: Windows 64bit</li> </ul>And, I could get one from <a href="http://yorickdowne.wordpress.com/2010/12/22/compiling-pycrypto-on-win7-64/" rel="nofollow">here</a>. And, <a href="http://archive.warshaft.com/pycrypto-2.3.1.win7x64-py2.7x64.7z" rel="nofollow">this</a> is a direct download link.
Thanks, everyone!
Answer2:Did a bit of research for you, and here's the bug that was filed for the SDK: <a href="http://code.google.com/p/googleappengine/issues/detail?id=2493" rel="nofollow">http://code.google.com/p/googleappengine/issues/detail?id=2493</a>
Summary of the issue: GAE has a customized version of PyCrypto 2.0.1 installed. Docs can be found <a href="http://code.google.com/appengine/docs/python/tools/libraries.html#PyCrypto" rel="nofollow">here</a>.
SDK does not include the PyCrypto implementation from GAE, so it needs to be installed locally. However, the default path for installation is blocked by the SDK. Solution recommended in the bug comments is to install PyCrypto in each app's directory. Steps are outlined in the bug comments (not trivial).
Hope this helps!
EDIT: This one could be helpful as well: <a href="http://code.google.com/p/googleappengine/issues/detail?id=1627" rel="nofollow">http://code.google.com/p/googleappengine/issues/detail?id=1627</a>
Answer3:You don't need to do any of this, just <a href="http://www.voidspace.org.uk/python/modules.shtml" rel="nofollow">install from the PyCrypto binaries</a>
Answer4:Alternatively, simply download and install <a href="http://downloads.activestate.com/ActivePython/releases/2.7.2.5/ActivePython-2.7.2.5-win64-x64.msi" rel="nofollow">ActivePython-2.7.2.5-win64-x64.msi</a> (<em>or</em> <a href="http://downloads.activestate.com/ActivePython/releases/2.7.2.5/ActivePython-2.7.2.5-win32-x86.msi" rel="nofollow">ActivePython-2.7.2.5-win32-x86.msi</a> for Win32) then run <strong>pypm install pycrypto</strong>