python升级sqlite3

0 views

转载自:

https://www.cnblogs.com/animalize/p/6337440.html

查看当前sqlite3版本

​ 用sqlite3.sqlite_version看一下SQLite引擎的版本​

import sqlite3
sqlite3.sqlite_version

安装 sqlite

官网:

下载,编译,安装

wget https://www.sqlite.org/2019/sqlite-autoconf-3280000.tar.gz
tar zxvf sqlite-autoconf-3280000.tar.gz
cd sqlite-autoconf-3280000

./configure
make
sudo make install

确认sqlite是否安装成功

ls -l /usr/local/lib/*sqlite*
ls -l /usr/local/include/*sqlite*

安装python

wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
tar zxvf Python-3.7.3.tgz
cd ./Python-3.7.3
LD_RUN_PATH=/usr/local/lib ./configure LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include"  --prefix=/opt/python3.7
LD_RUN_PATH=/usr/local/lib make
sudo make install

安装完成后重新查看sqlite3版本。

PREVIOUSElasticsearch根据日期进行筛选
NEXT基于docker自建gitlab