django中报错:mysqlclient需要>=1.3.13的解决方法
2020-07-19 04:30
309 查看
django中报错:mysqlclient需要>=1.3.13的解决方法
错误信息:django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
解决方法:
方法一:
找到Django目录下的base.py文件
将以下语句注释:
if version < (1, 3, 13): raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.version)
方法二:
将__init__.py中
import pymysql pymysql.install_as_MySQLdb()
更改为
import MySQLdb
相关文章推荐
- win10 下 django2.2生成mysql数据迁移文件出错(mysqlclient 1.3.13 or newer is required; you have 0.9.3)解决方法
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
- Mysql安装后打开MySQL Command Line Client闪退解决方法
- /lib/libmysqlcppconn.so: undefined reference to `mysql_stmt_execute@libmysqlclient_18' 解决方法
- django框架使用mysql报错,及两种解决方法
- PHP中,<textarea>里的内容保存MYSQL后,页面输出不换行的解决方法
- Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable(internal->fClient)解决方法
- django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
- python3.6+Django3.0 配置使用MySQL数据库错误 :mysqlclient 1.3.13 or newer is required
- MySQLdb ImportError: libmysqlclient.so.18解决方法
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
- Mysql安装后打开MySQL Command Line Client闪退解决方法
- 解决 Django 的 if version (1, 3, 3): raise ImproperlyConfigured("mysqlclient 1.3.3 or newer is requi
- Django将数据库切换为Mysql及mysqlclient 1.3.13 or newer is required; you have 0.9.2报错解决方案
- Django makemigrations mysql8.0数据库的时候报错 mysqlclient 1.3.13 or newer is required; you have 0.9.3.
- django.core.exceptions ImproperlyConfigured: mysqlclient 1.3.13 or newer is requiredyou have 0.9.2
- System.Data.OracleClient 需要 Oracle 客户端软件 8.1.7 或更高版本 在XP下解决方法
- System.Data.OracleClient 需要 Oracle 客户端软件 8.1.7 或更高版本 bug解决方法
- <textarea>里的内容保存MYSQL后,页面输出不换行的解决方法
- Mysql 5.6 command line Client闪退的解决方法