数据库
首页 > 数据库> > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclie

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclie

作者:互联网

环境pycharm2021.1.1+python3.7+django3.2.11

测试项目时,打开python控制台出现django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?错误

驱动正常,数据库配置也正常,__init__.py也添加了这个

import pymysql

pymysql.install_as_MySQLdb()

解决: pip -m install mysqlclient

标签:core,loading,Did,mysqlclient,module,MySQLdb,install
来源: https://www.cnblogs.com/j-one/p/15835605.html