![如何让 Python 使用最新的 SQLite](https://linux22.com/image/1579711/%E5%A6%82%E4%BD%95%E8%AE%A9%20Python%20%E4%BD%BF%E7%94%A8%E6%9C%80%E6%96%B0%E7%9A%84%20SQLite.png)
我已经做了以下事情:
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