gpt4 book ai didi

python - 导入 _counter 形式的 pycrypto 库时出错

转载 作者:太空宇宙 更新时间:2023-11-04 06:06:57 25 4
gpt4 key购买 nike

pycrypto 库中 Crypto/Util/Counter.py 中的这一行:

from Crypto.Util import _counter

导致此错误:

ImportError: cannot import name _counter

但我在 Python 站点包的 pycrypto 库中的 Crypto/Util 下有文件 _counter.so。我正在使用适用于 Windows 的 Python 2.7.5,32 位。

最佳答案

文件 _counter.so 属于 Linux/MacOS 包,Windows 应该有 _counter.pyd 代替。可以从这里下载预构建的 Windows PyCrypto 包:http://www.voidspace.org.uk/python/modules.shtml#pycrypto

关于python - 导入 _counter 形式的 pycrypto 库时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21450147/

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