ImproperlyConfigured('SQLite 3.8.3 or later is required Centos升级SQLite

2021-04-23 11:14:48 浏览数 (1)

遇到这个错误可以选择给django降级,不建议 这里选择升级SQLite

1、查看版本

sqlite3 --version

2.Centos7安装最新的sqlite3

wget https://www.sqlite.org/2019/sqlite-autoconf-3270200.tar.gz

tar -zxvf sqlite-autoconf-3270200.tar.gz

cd sqlite-autoconf-3270200/

./configure --prefix=/usr/local

make && make install

mv /usr/bin/sqlite3 /usr/bin/sqlite3_old

ln -s /usr/local/bin/sqlite3 /usr/bin/sqlite3

此时查看已经为新版本了sqlite3 --version

3、更新python库

虽然版本更新,但是python库还是需要更新的

export LD_LIBRARY_PATH="/usr/local/lib"

0 人点赞