1.sqlite3版本问题
packages/django/db/backends/sqlite3/base.py", line 63, in check_sqlite_version raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version) django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required
解决方案:
#更新SQLite 3
#获取源代码(在主目录中运行)
$ cd
$ wget https://www.sqlite.org/2019/sqlite-autoconf-3270100.tar.gz
$ tar xvfz sqlite-autoconf-3270100.tar.gz
#构建并安装
$ cd sqlite-autoconf-3270100
$ ./configure --prefix = / usr / local
$ make
$ sudo make install
$ sudo find / usr / -name sqlite3
#不必要的文件,目录删除
$ cd
$ rm sqlite-autoconf-3270100.tar.gz
$ rm -rf ./sqlite-autoconf-3270100
#检查版本
$ / usr / local / bin / sqlite3 --version
3.27.1 2019-02-08 13:17:39 0eca3dd3d38b31c92b49ca2d311128b74584714d9e7de895b1a6286ef959a1dd
$ 建立软连接
sudo ln -s / usr / local / bin / sqlite3 / usr / bin / sqlite3
最后:执行命令 ldconfig
2. uwsgi 启动时报错 确认虚拟环境已经安装django2.2,还是出现以下错误,
importerror no module named django core wsgi
解决方案:执行命令 ldconfig