Python常见问题 报错 cryptography is required for sha256_password or caching_sha2_password

背景

运行代码报错了

cryptography is required for sha256_password or caching_sha2_password

这段报错意思是说 sha256_password 和 caching_sha2_password 这两个加密算法需要用到 cryptography

 

解决方案

其实 cryptography 是一个python包,所以解决方法很简单

pip install cryptography
原文地址:https://www.cnblogs.com/poloyy/p/15534008.html