ImproperlyConfigured(“需要SQLite 3.8.3或更高版本(已找到%s)."%Database.sqlite_version) [英] ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version)
问题描述
ImproperlyConfigured('需要SQLite 3.8.3或更高版本(已找到%s).'%Database.sqlite_version)django.core.exceptions.ImproperlyConfigured:SQLite 3.8.3或更高版本
我在django项目中遇到了这个问题,sqlite3和django的版本不匹配.这是在centos7 env上发生的,我也想要一个在容器env中可用的便捷解决方案.
I met with this problem at the django project, mismatching version for the sqlite3 and the django. this occurs at the centos7 env, and I also want a convenient solution that works in the container env.
推荐答案
我通过使用以下命令升级我的sqlite3版本来解决此问题:
I solved this issue by upgrading my version of sqlite3 using this 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
我正在使用ElasticBeanstalk进行设置,因此我在.ebextensions文件夹中添加了一个.config文件,并将其放入其中:
I am using ElasticBeanstalk for my setup, so I added a .config file to the .ebextensions folder and put this in it:
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"
这篇关于ImproperlyConfigured(“需要SQLite 3.8.3或更高版本(已找到%s)."%Database.sqlite_version)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!