Django和sqlite3版本不匹配解决 Django-django.core.exceptions.ImproperlyConfigured: SQLite 3.9.0 or later is required (found 3.7.17)

1.修改django源文件配置

2升级sqlite

下载sqlite3

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

 

解压并安装sqlite3

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

 

.bashrc文件

在用户目录下.bashrc文件添加

export LD_LIBRARY_PATH="/usr/local/lib"
source /etc/profile

 

 
posted @ 2023-12-04 21:13  tan_ai_kang  阅读(580)  评论(0)    收藏  举报