升级SQLite
运行#python3 manager runserver 出错,错误信息最底一行
django.db.utils.NotSupportedError: deterministic=True requires SQLite 3.8.3 or higher
需要升级SQLite
#下载3.39.3版
wget https://www.sqlite.org/2022/sqlite-autoconf-3390300.tar.gz
# 编译
tar zxvf sqlite-autoconf-339300.tar.gz
cd sqlite-autoconf-3339300
./configure --prefix=/usr/local
make && make install
# 替换系统低版本 sqlite3
mv /usr/bin/sqlite3 /usr/bin/sqlite3_old
ln -s /usr/local/bin/sqlite3 /usr/bin/sqlite3
echo "/usr/local/lib" > /etc/ld.so.conf.d/sqlite3.conf
ldconfig
sqlite3 -version