gpt4 book ai didi

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

转载 作者:IT老高 更新时间:2023-10-28 22:08:12 26 4
gpt4 key购买 nike

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

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com