django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3. | Django报错

Django报错 | “django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.问题解决方案

1 问题分析

django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.

解读:django.core.exceptions.ImproperlyConfigured:需要mysqlclient 1.3.13或更高版本; 您有0.9.3。

言下之意就是您的mysqlclient版本较低,需要更新

2 解决(linux系统下)

2.1 找到相关文件的路径

笔者本机地址为(您可以参考这来寻找):

"/home/bert/.virtualenvs/nami_py3/lib/python3.6/site-packages/django/db/backends/mysql/base.py",

2.2 修改base.py相关内容

即如下进行注释:

# version = Database.version_info
# if version < (1, 3, 13):
#    raise ImproperlyConfigured(‘mysqlclient 1.3.13 or newer is required; you have %s.‘ % Database.__version__)

原文地址:https://www.cnblogs.com/Bert-Sun/p/12568517.html

时间: 2024-10-28 22:03:26

django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3. | Django报错的相关文章

Django3 中遇到django.core.exceptions.ImproperlyConfigured mysqlclient 1.3.13 or newer is required; you have 0.9.3.异常的解决方案

转自:https://yuntianti.com/posts/fix-django3-mysqlclient-import-error/ Django 近期发布了3.0版本,其中首度支持了asyncio让人兴奋, 为此引入了新的网关接口协议ASGI.按异步IO的实现原理,即使使用ASGI替代WSGI部署Web应用,如果使用了一些同步库,肯定还是会阻塞IOLoop的,使应用失去异步特性.但是Django的应用场景很多是有状态的,不得不使用一些带状态的库和函数.比如在MySQL中执行事务,或一些前后

django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.

异常汇总:https://www.cnblogs.com/dotnetcrazy/p/9192089.html 这个是Django对MySQLdb版本的限制,我们使用的是PyMySQL,所以不用管它 原文地址:https://www.cnblogs.com/dotnetcrazy/p/10779304.html

django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.9.3.None

报错环境: python=3.7,django=2.2,PyMySQL=0.9.3 抛出异常: django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3. 报错场景: 1.启动django项目 2.更新表:python manage.py makemigrations 报错原因:安装Django后不想折腾mysqlclient那堆库文件,直接装了pymy

Django2.2连接mysql数据库出现django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.7.11.None问题

在使用Django2.2开发的时候,想要使用mysql数据库,在settings.py文件中更改命令: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'python', 'USER': "root", 'PASSWORD': "yhr2323214310", 'HOST': '', 'PORT': '' }} 再安装好pymysql,然后在__init__.py文件中

关于报错:django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.7.11.None

线上项目转到测试,setting连接本地数据库报错. 1 django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.7.11.None Python安装路劲下的Python36-32\Lib\site-packages\django\db\backends\mysql\base.py文件下. 注释下面语句 1 if version < (1, 3, 3): 2 r

django2.2/mysql ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3

报错环境 python=3.6.5,django=2.2,PyMySQL=0.9.3 …… django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3. 解决方法: Django连接MySQL时默认使用MySQLdb驱动,但MySQLdb不支持Python3,因此这里将MySQL驱动设置为pymysql,使用 pip install pymysql 进行安

django.db.migrations.exceptions.MigrationSchemaMissing和raise ImproperlyConfigured(&#39;mysqlclient 1.3.13 or newer is required; you have %s.&#39; % Database.__version__)

1.使用Python3.7 + Django2.2 + MySQL 5.5 在执行(python manage.py migrate)命令时出现错误django.db.migrations.exceptions.MigrationSchemaMissing 原因是 所以,需要重新安装高版本的sql,安装好之后,问题就解决了 2.Django数据同步过程中遇到的问题: 1)raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is requ

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

转自:http://www.cnblogs.com/xiaobinglife/articles/10716605.html 一.Django数据同步过程中遇到的问题: 1.raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__) django.core.exceptions.ImproperlyConfigured: mysqlclient

报错: raise ImproperlyConfigured(&#39;mysqlclient 1.3.13 or newer is required; you have %s.&#39; % Database.__version__)

Django2.0同步Mysql数据库时出现的问题 执行 python manage.py makemigrations 报错 # 报错位置 File "G:\python\lib\site-packages\django\db\backends\mysql\base.py", line 36, in <module> # 报错问题 raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; yo