mysqlclient 1.3.13 or newer is required; you have 0.9.3.

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysqlclient 1.3.13 or newer is required; you have 0.9.3.相关的知识,希望对你有一定的参考价值。

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.的主要内容,如果未能解决你的问题,请参考以下文章

django.core.exceptions.ImproperlyConfigured: 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 ha

Django踩坑之django.core.exceptions.ImproperlyConfigured mysqlclient 1.3.13 or newer is required; you ha

raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Databas

django2.2/mysql ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3

pycharm运动Django项目时出现mysqlclient 1.3.13 or newer is required; you have 0.9.3