参考:https://blog.csdn.net/hubing_hust/article/details/128425426
使用pymysql连接MySql数据库报错RuntimeError:
'cryptography' package is required for sha256_password or caching_sha2_password auth methods
该错误提示的意思是:sha256_password和caching_sha2_password两种加密方式需要cryptography。
所以只需要安装一下cryptography包就可以了:
pip install cryptography
安装完成后,重新执行, 就ok了。