[英]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). 我正在尝试在本地计算机(Windows 7 64位)上安装PyCrypto 2.4.1。 But, I got following messages on 'python setup.py install'.
但是,我在“ python setup.py install”上收到了以下消息。
running install
运行安装
running build
运行构建
running build_py
运行build_py
running build_ext
运行build_ext
warning: GMP or MPIR library not found;
警告:找不到GMP或MPIR库; Not building Crypto.PublicKey._fastmath.
没有建立Crypto.PublicKey._fastmath。
building 'Crypto.Random.OSRNG.winrandom' extension
建立'Crypto.Random.OSRNG.winrandom'扩展
error: Unable to find vcvarsall.bat
错误:找不到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? 我想问的是:我可以只将其中包含
Crypto
文件夹的lib
文件夹复制到我的应用程序所在的位置吗? I'm developing a Google AppEngine app using Python27 runtime, and, I just need local library for PyCrypto. 我正在使用Python27运行时开发Google AppEngine应用,而且,我只需要PyCrypto的本地库。
Actually, I just needed some compiled version of PyCrypto for Windows 64bit. 实际上,我只需要Windows 64位的PyCrypto的某些编译版本。
And, I could get one from here . 而且,我可以从这里得到一个。 And, this is a direct download link.
而且, 这是直接下载链接。
Thanks, everyone! 感谢大家!
您不需要执行任何操作,只需从PyCrypto二进制文件安装
Did a bit of research for you, and here's the bug that was filed for the SDK: http://code.google.com/p/googleappengine/issues/detail?id=2493 为您做了一些研究,这是为SDK提交的错误: http : //code.google.com/p/googleappengine/issues/detail?id=2493
Summary of the issue: GAE has a customized version of PyCrypto 2.0.1 installed. 问题摘要:GAE安装了自定义版本的PyCrypto 2.0.1。 Docs can be found here .
可以在这里找到文档。
SDK does not include the PyCrypto implementation from GAE, so it needs to be installed locally. SDK不包含GAE的PyCrypto实现,因此需要在本地安装。 However, the default path for installation is blocked by the SDK.
但是,SDK阻止了默认的安装路径。 Solution recommended in the bug comments is to install PyCrypto in each app's directory.
错误注释中建议的解决方案是在每个应用程序的目录中安装PyCrypto。 Steps are outlined in the bug comments (not trivial).
错误注释中概述了步骤(并非无关紧要)。
Hope this helps! 希望这可以帮助!
EDIT: This one could be helpful as well: http://code.google.com/p/googleappengine/issues/detail?id=1627 编辑:这可能也有帮助: http : //code.google.com/p/googleappengine/issues/detail?id=1627
或者,只需下载并安装ActivePython-2.7.2.5-win64-x64.msi ( 或 Win32的ActivePython-2.7.2.5-win32-x86.msi ),然后运行pypm install pycrypto
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.