django 2.2 django.core.exceptions.improperlyconfigured sqlite 3.8.3 or later is required (found 3.7.

2023-02-18 14:49:33 浏览数 (1)

在 centos7 上面执行 migrate 时提示:

django.core.exceptions.improperlyconfigured sqlite 3.8.3 or later is required (found 3.7.17)

解决思路:

升级 centos7 系统上 sqlite 驱动库

安装 sqlite 新版驱动库:

代码语言:javascript复制
$ cd ~
$ wget https://www.sqlite.org/2019/sqlite-autoconf-3290000.tar.gz
$ tar zxvf sqlite-autoconf-3290000.tar.gz
cd sqlite-autoconf-3290000

$./configure --prefix=$HOME/opt/sqlite
$ make && make install

vim ~/.bash_profile 加入以下内容:

代码语言:javascript复制
export PATH=$HOME/opt/sqlite/bin:$PATH
export LD_LIBRARY_PATH=$HOME/opt/sqlite/lib
export LD_RUN_PATH=$HOME/opt/sqlite/lib

.bash_profile 保存后:

代码语言:javascript复制
source ~/.bash_profile

0 人点赞