要检查使用哪个版本的SQLite Python:
$ pythonPython 3.7.3 (default, Apr 12 2019, 16:23:13) >>> import sqlite3>>> sqlite3.sqlite_version'3.27.2'
对我来说,新版本的sqlite3在/ usr / local / bin中,因此我不得不重新编译Python,告诉它在那看:
sudo LD_RUN_PATH=/usr/local/lib ./configure --enable-optimizationssudo LD_RUN_PATH=/usr/local/lib make altinstall
希望对您有所帮助。