美文网首页
Python使用Crypto时报错

Python使用Crypto时报错

作者: testerzhang | 来源:发表于2022-08-15 21:26 被阅读0次

问题

使用Python3.9环境的时候执行

from Crypto.Cipher import AES

报错:

ImportError: cannot import name 'byte_string' from 'Crypto.Util.py3compat'

解决

$ pip3 uninstall pycrypto
$ pip3 uninstall pycryptodome
$ pip3 install pycryptodome

欢迎关注我的同名公众号,原创技术文章第一时间推送。
如果你有遇到Linux系统或者其他技术问题,也可以付费协助解决。

相关文章

网友评论

      本文标题:Python使用Crypto时报错

      本文链接:https://www.haomeiwen.com/subject/qibmirtx.html