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

 

posted @ 2021-11-10 16:19  小菠萝测试笔记  阅读(1126)  评论(0编辑  收藏  举报