通过在Windows7 64bi上复制“lib”文件夹来安装PyCrypto

2024-04-27 17:33:51 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在本地计算机(Windows764位)上安装PyCrypto2.4.1。 但是,我在“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

我想问的是:我能不能把包含Crypto文件夹的lib文件夹复制到我的应用所在的位置?我正在使用Python27运行时开发一个Google AppEngine应用程序,而且,我只需要PyCrypto的本地库。


Tags: installorpybuild文件夹消息计算机setup
3条回答

你不需要做这些,只要install from the PyCrypto binaries

实际上,我只需要一些编译版的PyCrypto for Windows 64位。

  • PyCrypto版本:2.3.1
  • Python版本:2.7.1
  • 目标平台:Windows 64位

而且,我可以从here那里得到一个。而且,this是一个直接下载链接。

谢谢大家!

为您做了一些研究,以下是为SDK提交的bug: http://code.google.com/p/googleappengine/issues/detail?id=2493

问题摘要: GAE安装了PyCrypto 2.0.1的自定义版本。可以找到文档here

SDK不包括来自GAE的PyCrypto实现,因此需要在本地安装。但是,SDK阻止了安装的默认路径。bug注释中建议的解决方案是在每个应用程序的目录中安装PyCrypto。在bug注释中概述了步骤(不是很简单)。

希望这有帮助!

编辑:这个也有帮助:http://code.google.com/p/googleappengine/issues/detail?id=1627

相关问题 更多 >