raise ImproperlyConfigured("mysqlclient 1.3.3 or newer is required; you have %s" % Database.__version__)

除标题外,还有报错: django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.6.7.None

 

解决:

需要改: > 虚拟环境> 

Lib\site-packages\django\db\backends\mysql\base.py需要将一下代码注释掉:

  if version < (1, 3, 3): raise ImproperlyConfigured("mysqlclient 1.3.3 or newer is required; you have %s" % Database.version)

posted @ 2022-08-02 14:01  tslam  阅读(69)  评论(0编辑  收藏  举报