回到顶部

阅读目录

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

在 centos7 上面执行 migrate 时提示:

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

解决思路:

升级 centos7 系统上 sqlite 驱动库

安装 sqlite 新版驱动库:

$ 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 加入以下内容:

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 保存后:

source ~/.bash_profile

 

^_^
请喝咖啡 ×

文章部分资料可能来源于网络,如有侵权请告知删除。谢谢!

前一篇: model_utils _clone() got an unexpected keyword argument 'subclasses'
下一篇: django2.2 TypeError: render() got an unexpected keyword argument 'renderer'