django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient? 解决方法

step One:
to find a place to install python {path} Look at the red box to find base.py
release out about the content

if version < (1, 3, 13):

raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__)

step Tow:
pip install pyMySQL

step Three:
followed __init__.py input and save django

import pymysql
pymysql.install_as_MySQLdb()

Guess you like

Origin www.cnblogs.com/helel/p/12050066.html