mysqlclient 1.3.13 or newer is required; you have 0.9.3

在项目的__init__.py中写下

import pymysql 
pymysql.version_info = (1, 3, 13, "final", 0) 
pymysql.install_as_MySQLdb()
发布了306 篇原创文章 · 获赞 263 · 访问量 187万+

猜你喜欢

转载自blog.csdn.net/chenguang79/article/details/105730750