【问题标题】:ImproperlyConfigured: SQLite 3.9.0 or later Error When Using Django配置不当:使用 Django 时出现 SQLite 3.9.0 或更高版本错误
【发布时间】:2021-12-17 12:01:41
【问题描述】:

在我的 Django 项目“python manage.py migrate”中运行此命令时收到以下错误消息如何在 CentOS 7 x64bit 上升级到更高版本的 SQLite?

Error:
SQLite 3.9.0 or later is required (found %s).' % Database.sqlite_version
django.core.exceptions.ImproperlyConfigured: SQLite 3.9.0 or later is required (found 3.7.1                                                                   7).

#python -V

Python 3.6.8

# sqlite3 --version

3.7.17 2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668

# uname -a

3.10.0-1160.25.1.el7.x86_64 #1 SMP Wed Apr 28 21:49:45 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

# python3 -c "import django; print(django.get_version())"

3.2.9

# cat /etc/centos-release

CentOS Linux release 7.9.2009 (Core)

【问题讨论】:

    标签: python-3.x django sqlite


    【解决方案1】:

    我通过使用 mysql 和 django 解决了我的问题。我不知道为什么没有官方发布的可以在 CentOS 64bit 上使用 Django 的 sqlite 3.9.X+,但是 MySQL 运行良好。

    【讨论】:

      猜你喜欢
      • 2020-06-14
      • 2020-06-24
      • 2021-12-21
      • 2020-01-27
      • 1970-01-01
      • 2019-09-04
      • 2021-11-01
      • 2014-10-04
      • 2019-10-24
      相关资源
      最近更新 更多