解决mysqlclient 1.4.0 or newer is required; you have 0.10.0.

解决mysqlclient 1.4.0 or newer is required; you have 0.10.0.

在Django 项目的__init__.py文件中指定版本

import pymysql
pymysql.version_info = (1, 4, 13, 'final', 0)
pymysql.install_as_MySQLdb()

猜你喜欢

转载自blog.csdn.net/zhouzhiwengang/article/details/113926986