Probably already installed
SQLite ships with macOS, most Linux distributions, and every Python install. Windows ships SQLite as part of the C runtime since Windows 10. You probably do not need to install anything to follow this quest.
What you might want is a newer SQLite than the system one. macOS in particular ships an older Apple-curated build (3.43 as of 2026) when current upstream is 3.53+. Newer versions matter for STRICT tables, JSONB, FTS5 trigram, and recent performance work.
- macOS —
brew install sqliteinstalls upstream into/opt/homebrew/opt/sqlite/bin/sqlite3. Add it to PATH or invoke explicitly. - Ubuntu / Debian —
sudo apt install sqlite3 libsqlite3-dev. - Fedora / RHEL —
sudo dnf install sqlite sqlite-devel. - Windows — download the Precompiled Binaries zip from sqlite.org and add to PATH, or use
winget install SQLite.SQLite. - Python's bundled SQLite —
python -c 'import sqlite3; print(sqlite3.sqlite_version)'. To upgrade Python's bundled SQLite you typically rebuild Python against a newer libsqlite, or usepysqlite3-binary.
Tip: When something works in the CLI but not in Python (or vice versa), check both versions:
sqlite3 --version and python -c 'import sqlite3; print(sqlite3.sqlite_version)'. The two often differ — STRICT tables, JSONB, and several PRAGMAs landed in specific versions.