如何让 Python 使用最新的 SQLite

如何让 Python 使用最新的 SQLite

我已经做了以下事情:

1. Going over to this url: https://sqlite.org/download.html I will download 'sqlite-autoconf-3260000.tar.gz' which is version 3.26.0 
2. assuming it's in my Downloads folder I will open my terminal and type in the following commands
3. I am assuming you have build-essentials installed if not run
# sudo apt install build-essentials -y
# cd ~/Downloads
# tar -xvf sqlite-autoconf-3260000.tar.gz -C /tmp/
# cd /tmp/sqlite-autoconf-3260000
# ./configure
# make
# make install
# make clean
close your terminal and open it again
# sqlite3 --version

当我执行 sqlite3 --version 时,它说我正在使用 3.26.0 但是当我这样做时:

Import sqlite3
sqlite3.sqlite_version

它说我正在使用 3.22.0(之前安装的版本)有人知道如何让 python 使用最新版本吗?我正在使用 ubuntu 16.04

相关内容