django.core.exceptions.ImproperlyConfigured: 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.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3_第1张图片

解决办法:

1、注释"F:\work_all\project\Django\venv\lib\site-packages\django\db\backends\mysql\base.py"中的一下两行代码:

 if version < (1, 3, 13):
     raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__)

2、将"F:\work_all\project\Django\venv\lib\site-packages\django\db\backends\mysql\operations.py" 中的

decode改为encode

 

你可能感兴趣的:(Django)