gpt4 book ai didi

python - 导入错误 : cannot import name '_counter' from 'Crypto.Util'

转载 作者:行者123 更新时间:2023-12-02 10:40:37 43 4
gpt4 key购买 nike

我在 Linux Ubuntu 18.04 LTS 上使用 Geanny 编辑器和 python 3.7 解释器。我试图使用 AES 256 位加密。我在互联网上研究了这个问题并尝试了各种不同的解决方案,但无济于事。我继续得到的错误是
ImportError: cannot import name '_counter' from 'Crypto.Util' (/usr/lib/python3/dist-packages/Crypto/Util/__init__.py).
解决此问题的任何建议或想法?

最佳答案

尝试:sudo pip install pycrypto pycryptodomex如果仍然无法正常工作:sudo pip uninstall pycrypto pycryptodomexsudo pip install pycryptodome注意pycrypto和pycryptodome会互相干扰

One must avoid having both PyCrypto and PyCryptodome installed at thesame time, as they will interfere with each other.


( source )

关于python - 导入错误 : cannot import name '_counter' from 'Crypto.Util' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54938481/

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