私が自分でビルドしたやつは3.29.0なのに。
情報源
コード
sqlite3_test.py
import sqlite3 print(sqlite3.sqlite_version)
python3 sqlite3_test.py
3.16.2
Python3.5.3におけるSQLite3のバージョンは3.16.2。
最新にするには?
- https://stackoverflow.com/questions/48865416/how-to-use-the-latest-sqlite3-version-in-python
- https://github.com/ghaering/pysqlite/issues/123
例によってOSのパッケージマネージャには古いものしかない。
sudo apt search sqlite3
sqlite3/oldstable,oldstable,stable,stable 3.16.2-5+deb9u1 armhf Command line interface for SQLite 3
自前でビルドするしかない。やはりPython環境構築が立ちはだかる。
対象環境
- Raspbierry pi 3 Model B+
- Raspbian stretch 9.0 2018-11-13 ※
- bash 4.4.12(1)-release ※
- SQLite 3.29.0 ※
- MeCab 0.996ユーザ辞書
- Python 3.5.3
- SQLite 3.16.2
$ uname -a Linux raspberrypi 4.19.42-v7+ #1218 SMP Tue May 14 00:48:17 BST 2019 armv7l GNU/Linux