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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章