0%

django_SQLite_3.9.0_required(found3.7.17)_错误解决方案

django_SQLite_3.9.0_required(found3.7.17)_错误解决方案:

解决 django—SQLite报错




错误信息

django.core.exceptions.ImproperlyConfigured: SQLite 3.9.0 or later is required (found 3.7.17).



1. 进入你的虚拟环境文件夹

vim django_venv/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py

找到check_sqlite_version() 函数调用语句 ==> 第66行 注释

将django_venv/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py 下的check_sqlite_version()函数禁用




2. 出现如下错误,继续处理,否则略过

django.db.utils.NotSupportedError: deterministic=True requires SQLite 3.8.3 or higher

# 将208行的
deterministic=True,
# 改为
deterministic=False,