关于Django出现2.X出现mysqlclient 1.3.13 or newer is required; you have 0.9.3.,注释掉if version还是不行
2020-02-29 22:59
721 查看
@[TOC](关于Django出现2.X出现mysqlclient 1.3.13 or newer is required; you have 0.9.3.,注释掉if version < (1, 3, 13):还是不行的问题)
首先因为大家可能装了2个以上版本的python
当发现报错直接点这个base.py文件,不要去找什么文件,因为你找到的不是生效的django文件
然后又会出现新的问题
AttributeError: ‘str’ object has no attribute ‘decode’
也不要找什么文件了,一样的直接点击operations.py文件
然后修改文件146行,把decode改成encode--------看图
大功告成
对你有帮助,希望留个言
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
- Django中使用mysqlclent服务报错:mysqlclient 1.3.13 or newer is required; you have 0.9.3.
- 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 or newer is required; you have 0.9.3
- django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3
- win10 下 django2.2生成mysql数据迁移文件出错(mysqlclient 1.3.13 or newer is required; you have 0.9.3)解决方法
- ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3. 解决办法
- Django将数据库切换为Mysql及mysqlclient 1.3.13 or newer is required; you have 0.9.2报错解决方案
- django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.7.11
- 解决 Django 的 if version (1, 3, 3): raise ImproperlyConfigured("mysqlclient 1.3.3 or newer is requi
- macOS使用django安装mysqlclient遇到的问题(mysqlclient 1.3.3 or newer is required)
- Django连接mysql django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required;
- Cannot connect to WMI provider.You do not have permission or the server is unreachable.Note that you can only manager SQL Server 2005 and later version with SQL Server Configuration Manager.Invalid namespace [0x8004100e]
- 关于在乌班图中出现Authenticaton is required to "mysql_server"输入密码总是错误解决
- 关于使用DBeaver连接MySQL出现The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or问题的解决办法
- 关于 WMI Provider 不能连接的错误 - Cannot connect to WMI provider. You do not have permission or the server is unreachable.
- 解决jk安装时出现的问题:autoconf not found.You need autoconf version 2.59 or newer installed
- ubuntu 14.04 安装 pip出现包依赖问题(This may mean that you have requested an impossible situation or ifyou ar
- Java 连接hive2 server 通过jdbc 出现了问题 Required field 'client_protocol' is unset! Struct:TOpenSessionReq
- 关于VC++6.0编译的问题,关闭出现you cannot close the workspace while a build is in progress