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.improperyconfigured:需要mysqlclient 1.3.13或更新版本;
  • 这个错误主要是 django 与 python 版本问题、你也可以直接安装mysqlclient 1.3.13:pip install mysqlclient=1.3.13 -i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com
    django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3
  • 你需要降低你的djiango版本,相应的指令:pip install django=加对应的版本型号-i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com
  • 例如:pip install django=2.0.0 -i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com
  • 我这里用的是django1.11加python3.6的,所以在运行项目的时候会出现下面的错误
    django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3这里的解决办法是改setting.py里面的

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接下来就能运行成功了:
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3