【问题标题】:SQLite 3.8.3 or later is required需要 SQLite 3.8.3 或更高版本
【发布时间】:2020-12-11 01:44:27
【问题描述】:

当我运行python3 manage.py runserver 10.0.1.150:000

我收到错误消息 django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).

所以我通过 LD_LIBRARY_PATH='/opt/atomicorp/atomic/root/usr/lib64/' python3 检查 SQlite 的版本 然后是import sqlite3,然后是sqlite3.sqlite_version。我得到'3.8.5'

我非常困惑为什么这不起作用,我已经想到了一些原因,比如系统可能没有检测到更新或类似的东西。

Here is a image of the error in bash

【问题讨论】:

    标签: python-3.x django


    【解决方案1】:

    通常SQLiteSQLite3 不用于生产,一些托管服务提供商根本不支持它。我会推荐你​​去MySQL

    可能有帮助的参考资料

    1. https://medium.com/@omaraamir19966/connect-django-with-mysql-database-f946d0f6f9e3
    2. Setting Django up to use MySQL
    3. No module named MySQLdb

    【讨论】:

      猜你喜欢
      • 2020-08-24
      • 2020-07-04
      • 2020-06-24
      • 2022-07-03
      • 2022-11-04
      • 2019-09-04
      • 2020-06-14
      • 1970-01-01
      • 2021-06-26
      相关资源
      最近更新 更多