首页 > 数据库 >python3连接mysql报错RuntimeError: 'cryptography' package is required for sha256_password or ca

python3连接mysql报错RuntimeError: 'cryptography' package is required for sha256_password or ca

时间:2023-02-10 00:00:24浏览次数:50  
标签:sha2 sha256 cryptography pip3 RuntimeError 报错 password

使用pymysql报错RuntimeError ‘cryptography‘ package is required for sha256_password or caching_sha2_passw

如果报错:

解决办法:
安装cryptography
pip3 install cryptography

如果安装失败出现:

更新一下pip3就行:
pip3 install --upgrade pip

再重新安装cryptography
pip3 install cryptography

完成。

标签:sha2,sha256,cryptography,pip3,RuntimeError,报错,password
From: https://www.cnblogs.com/chaishengblog/p/17107535.html

相关文章