Error loading either pysqlite2 o
2017-09-26 本文已影响165人
Echo112233
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