错误现象:ImportError: cannot import name ‘byte_string‘ from ‘Crypto.Util.py3compat‘ (/usr/local/lib/python3.9
报错原因: 版本太旧,需要重新安装最新版
解决方法:
pip3 uninstall pycrypto pip3 uninstall pycryptodome pip3 install pycryptodome