iis服务器助手广告
返回顶部
首页 > 资讯 > 数据库 >使用pymysql报错RuntimeError ‘cryptography‘ package is required for sha256_password or caching_sha2_passw
  • 430
分享到

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

mysql数据库python开发语言数据分析 2023-10-01 08:10:25 430人浏览 独家记忆
摘要

使用pyMysql连接mysql数据库报错RuntimeError: 'cryptography' package is required for sha256_passWord or caching

使用pyMysql连接mysql数据库报错RuntimeError:

'cryptography' package is required for sha256_passWord or caching_sha2_password auth methods

20221223232027

该错误提示的意思是:sha256_password和caching_sha2_password两种加密方式需要cryptography。

所以只需要安装一下cryptography包就可以了:

pip install cryptography

20221223232140

安装完成后,重新执行, 就ok了。

来源地址:https://blog.csdn.net/hubing_hust/article/details/128425426

您可能感兴趣的文档:

--结束END--

本文标题: 使用pymysql报错RuntimeError ‘cryptography‘ package is required for sha256_password or caching_sha2_passw

本文链接: https://www.lsjlt.com/news/422169.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作