【SQLite】版本问题--对编译后的Python无效
sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or higher
这里提示需要安装高于或者等于3.8.3版本的SQLite
——————————————————————————
回退 deterministic=True 设置
如果你不想立即升级 SQLite,可以在 wsgi.py 中,找到你使用的自定义函数或库,并移除 deterministic=True 设置。不过,这个方法可能会影响到部分功能,因此建议尽量使用更高版本的 SQLite 或切换数据库
————————————————————————————————————-
wget https://www.sqlite.org/2024/sqlite-autoconf-3470200.tar.gz
tar -zxvf sqlite-autoconf-3470200.tar.gz
cd sqlite-autoconf-3400200
————————————————————————————————————–
./configure
make
sudo make install
———————————————————————————–
更新 ldconfig 缓存: 运行以下命令更新系统的动态库缓存,确保系统加载的是 /usr/local/lib 中的库:
这样可以确保新安装的动态库被正确加载
——————————————————————————–
PS:此方法虽然可以更新linux本地的SQLite版本,但是python编译的时候绑定了自带的SQLite版本,故此方法,对编译后的python无效。