关于报错:django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0
Posted James_23
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于报错:django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0相关的知识,希望对你有一定的参考价值。
线上项目转到测试,setting连接本地数据库报错。
1 django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.7.11.None
Python安装路劲下的Python36-32Libsite-packagesdjangodbackendsmysqlase.py文件下。
注释下面语句
1 if version < (1, 3, 3): 2 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的主要内容,如果未能解决你的问题,请参考以下文章