python3.8 + django3.0.7 使用pymysql报错:django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.2
1.python3.8 + django3.0.7 使用pymysql报错:
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.2
2.报错原因:是django2.2以上版本内部的一个限制
3.解决方法:修改django内部源码
4.修改文件:C:\Users\chenjianwen\AppData\Local\Programs\Python\Python38\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__)
5.修改后保存运行正常
一些事情一直在干,说不定以后就结果了呢
本文来自博客园,作者:chenjianwen,转载请注明原文链接:https://www.cnblogs.com/chenjw-note/p/13140257.html