gpt4 book ai didi

python - 配置不当 ('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version)

转载 作者:行者123 更新时间:2023-12-04 15:32:55 24 4
gpt4 key购买 nike

ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version) django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later

我在 django 项目中遇到了这个问题,sqlite3 和 django 的版本不匹配。这发生在 centos7 环境中,我还想要一个在容器环境中工作的方便的解决方案。

最佳答案

我通过使用以下命令升级我的 sqlite3 版本解决了这个问题:

cd ~ && wget https://www.sqlite.org/2020/sqlite-autoconf-3320100.tar.gz && tar xvfz sqlite-autoconf-3320100.tar.gz && cd sqlite-autoconf-3320100 && ./configure && make && make install
我使用 ElasticBeanstalk 进行设置,因此我将 .config 文件添加到 .ebextensions 文件夹并将其放入其中:
option_settings:
aws:elasticbeanstalk:application:environment:
LD_LIBRARY_PATH: "/usr/local/lib"
commands:
01_upgrade_sqlite:
command: "cd ~ && wget https://www.sqlite.org/2020/sqlite-autoconf-3320100.tar.gz && tar xvfz sqlite-autoconf-3320100.tar.gz && cd sqlite-autoconf-3320100 && ./configure && make && make install"
非常感谢 Bejür用于在此处添加 LD_LIBRARY_PATH 环境变量以使其正常工作。

关于python - 配置不当 ('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60826836/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com