from Crypto.Util.py3compat import byte_string ImportError: cannot import name 'byte_string' #重新安装一下依赖包就可以了 pip3 uninstall pycrypto pip3 uninstall pycryptodome pip3 install pycryptodome