安裝Django時或者啓動django項目時出現以下報錯:python
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17)
或者這個報錯
ImportError: dynamic module does not define module export functionsql
都是由於缺乏sqlite3庫致使或者版本太低致使django
解決方法:vim
從官網上下載最新sqlite源碼包 https://www.sqlite.org/2019/sqlite-autoconf-3290000.tar.gz
解壓縮、編譯安裝、
修改vim /etc/ld.so.conf 添加一條/usr/local/lib/ui
就能夠了
若是還不行就能夠而後從新編譯安裝pythonsqlite