PyCrypto install by copying 'lib' folder on Windows7 64bit


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'.


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


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!


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>


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>


Alternatively, simply download and install <a href="http://downloads.activestate.com/ActivePython/releases/" rel="nofollow">ActivePython-</a> (<em>or</em> <a href="http://downloads.activestate.com/ActivePython/releases/" rel="nofollow">ActivePython-</a> for Win32) then run <strong>pypm install pycrypto</strong>


  • difference between keeping database in app_data and connecting to an external database
  • CUDA Debugging - VS on windows workstation, GPUs on Linux server?
  • VB.NET 2012 Property Set on Property Get
  • Facebook Messenger Platform - Detect user typing
  • How to know which Linq statement produced the SQL on hand during runtime?
  • sweetalert2 inputoptions from file in select example
  • Most efficient way to move table rows from one table to another
  • Easiest way to get current unix timestamp via XSL
  • Servlet stops working on Tomcat server after some hits or time
  • How to get latest version of a artifact on Bintray using JSONP
  • Best way to dynamically load an xml configuration file into a Flex4/Flash movie at runtime?
  • During installation of Django, why do I keep getting ImportError: No module named django?
  • How to get current document uri in XSLT?
  • Web.config system.webserver errors
  • std::remove_copy_if_ valgrind bytes in block are possibly lost in loss record
  • Unable to install Git-core+svn by MacPorts
  • Unable to decode certificate at client new X509Certificate2()
  • error importing numpy
  • Very simple C++ DLL that can be called from .net
  • Functions in global context
  • The plugin 'org.apache.maven.plugins:maven-jboss-as-plugin' does not exist or no valid ver
  • Seeking advice on Jetty HttpClient Hang
  • Paperclip, set path outside of rails root folder
  • Launch Runnable Jar from Web Start
  • req.body is undefined - nodejs
  • Symfony2: How to get request parameter
  • Google cloud sdk not working when python points python3
  • Akka Routing: Reply's send to router ends up as dead letters
  • XCode can't find symbols for a specific iOS library/framework project
  • Is there a mandatory requirement to switch app.yaml?
  • Proper folder structure for lots of source files
  • Load html files in TinyMce
  • C# - Getting references of reference
  • using HTMLImports.whenReady not working in chrome
  • Hits per day in Google Big Query
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Linking SubReports Without LinkChild/LinkMaster
  • Append folder name and increment by 1 using batch script
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • Android Heatmap on canvas or ImageView