pymysql报错:cryptography is required for sha256_password or caching_sha2_password

这段报错意思是说 sha256_password 和 caching_sha2_password 这两个加密算法需要用到 cryptography 。因此该方法的解决方法就是pip install cryptography

在安装完成后可能没有引入到项目中,因此需要打开file--->settings

 

原文地址:https://www.cnblogs.com/xing-29391/p/13258010.html