我在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/