PyCrypto未完全安装在Windows XP上

jay*_*jay 29 python windows pycrypto

python setup.py install在Windows XP控制台中运行,它报告如下:

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: None
Run Code Online (Sandbox Code Playgroud)

当我尝试运行脚本时import Crypto.Cipher.AES,它不起作用,说:

ImportError: cannot import name AES
Run Code Online (Sandbox Code Playgroud)

我怎样才能解决这个问题?

Joh*_*ett 43

在Windows上,通过预构建的Windows安装程序安装PyCrypto可能更容易.Voidspace站点有Python 2.2-2.7的PyCrypto 2.1和2.3安装程序.