django2.2升级:安装sqlite3.28.0
一. 简介
django出了最新的2.2版本,正好升级一波.
安装的时候报错"SQLite 3.8.3 or later is required (found 3.7.17)",升级安装sqlite3最新版本3.28.0,记录下.
二. 之前的django部署文档
https://wangbin.io/blog/it/django.html
三. 安装sqlite3.28.0
# yum依赖
yum -y install gcc
# sqlite
cd ~
wget https://www.sqlite.org/2019/sqlite-autoconf-3280000.tar.gz
tar zxvf sqlite-autoconf-*.tar.gz
cd sqlite-autoconf-*/
./configure --prefix=/usr/local/sqlite
make
make install
# bin
ln -fs /usr/local/sqlite/bin/sqlite3 /usr/bin/sqlite3
# 动态库
LD_LIBRARY_PATH=/usr/local/sqlite/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
ldconfig
# 删除临时文件
cd ~
rm -rf ~/sqlite-autoconf-*
rm -f ~/sqlite-autoconf-*.tar.gz
四. 验证
[root@localhost ~]# python3
Python 3.6.6 (default, Mar 29 2019, 00:03:27)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.28.0'
五. 结尾
sqlite3最新版本,没说的