【已解决】django3.x版本连接MySQL报错mysqlclient 1.3.13 or newer is required
前言
这个东西找了很久始终报错
mysqlclient 1.3.13 or newer is required; you have 0.9.3.
这里有个解决方案,解决了这个问题,然而这个方法是否为饮鸠止渴还有待实践
环境
django 3.0.x
python 3.6
mysql 8.0.x
配置
安装
pip install pymysql
init.py文件
import pymysql
pymysql.version_info = (1, 3, 13, "final", 0)
pymysql
原创
2020-06-11 11:52:28 ·
431 阅读 ·
0 评论