我下载了老师网站上的那个64位MySQL_python-1.2.5-cp27-none-win_amd64文件,在安装时报错,错误信息:
MySQL_python-1.2.5-cp27-none-win_amd64.whl is not a supported wheel on this platform.
在看了有些同学的提问后,我发现有一个解决方法是这个:
import pymysql
pymysql.install_as_MySQLdb()
按照上面操作后,运行manage.py后不报错,但是makemigrate后就会报错,报错信息:
aise ImproperlyConfigured(‘mysqlclient 1.3.13 or newer is required; you have %s.’ % Database.version)
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.