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

 

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