首页 > 数据库技术 > 详细

mysqlclient 1.3.13 or newer is required; you have 0.9.3.

时间:2021-06-13 23:49:01      阅读:24      评论:0      收藏:0      [点我收藏+]

mysqlclient 1.3.13 or newer is required; you have 0.9.3.

django提示错误: django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.

环境:

  • python 3.8
  • django 3.0.1
  • pymysql 0.9.3

网上的很多方法是修改Django中base.py代码,注释掉判断MySQL版本的代码部分,其实注释掉后,运行会提示很多异常错误。

这种问题,很有可能是Django版本和pymysql版本不兼容导致的。
所以应该根据其提示更新pymysql库:

pip install --upgrade pymysql

我的github
我的博客
我的笔记

mysqlclient 1.3.13 or newer is required; you have 0.9.3.

原文:https://www.cnblogs.com/lczmx/p/14881331.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!