执行操作
from test_platform.tools.login_api import db
db.create_all()
日志
RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods
解决方案
pip install cryptography
本文介绍了一个在使用Python进行数据库操作时遇到的运行时错误:'cryptography'包对于sha256_password或caching_sha2_password认证方法是必需的。通过安装cryptography包,可以解决此问题。
执行操作
from test_platform.tools.login_api import db
db.create_all()
日志
RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods
解决方案
pip install cryptography

被折叠的 条评论
为什么被折叠?