python3 manage.py runserver 0.0.0.0:8000 启动django项目时,报Error loading either pysqlite2 or sqlite3 modules (tried in that order): No module named '_sqlite3' 错误。
解决方法:
Centos:
yum install -y sqlite-devel
Ubuntu/Debian:
apt-get install libsqlite3-dev
然后再重新编译安装python3:
./configure --prefix=/usr/local/python3.6
make && make install
网友评论