问题复现
- django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).
解决办法
- shell脚本自动升级
# vim SQLite_update.sh
sqlite3 --version wget https://www.sqlite.org/2019/sqlite-autoconf-3290000.tar.gz tar -xaf sqlite-autoconf-3290000.tar.gz cd sqlite-autoconf-3290000/ ./configure --prefix=/usr/local/ make && make install mv /usr/bin/sqlite3 /usr/bin/sqlite3.bak ln -s /usr/local/bin/sqlite3 /usr/bin/sqlite3 echo export LD_LIBRARY_PATH="/usr/local/lib">> ~/.bashrc source ~/.bashrc sqlite3 --version
# chmod +x SQLite_update.sh # sh SQLite_update.sh
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/290661.html