python - PyCrypto 未完全安装在 Windows XP 上

标签 python windows pycrypto

我在Windows XP控制台运行python setup.py install,结果如下:

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

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

ImportError: cannot import name AES

我该如何解决这个问题?

最佳答案

在 Windows 上,通过预构建的 Windows 安装程序安装 PyCrypto 可能会更容易。 Voidspace 网站有 PyCrypto 2.1 and 2.3 installers for Python 2.2-2.7 .

关于python - PyCrypto 未完全安装在 Windows XP 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1687283/

相关文章:

windows - 版本更新后,SourceTree不会自动刷新

c++ - LONG_PTR 的迭代器

python - tf.nn.softmax_cross_entropy_with_logits 是否考虑批量大小?

python - Lambda 函数要求输入两次,

python - mediaItems.search_next() 返回 400

python-3.x - Python 日志记录使用自定义格式加密

python - pycrypto AES CBC

Python - 使用 For 循环更改图像的对比度

python - 如何在Win10/powershell上获取免费/开放的本地端口以进行ssh转发

python - Pycrypto 和 mySQL 问题