美文网首页
Error loading either pysqlite2 o

Error loading either pysqlite2 o

作者: Echo112233 | 来源:发表于2017-09-26 17:56 被阅读165次

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

相关文章

网友评论

      本文标题:Error loading either pysqlite2 o

      本文链接:https://www.haomeiwen.com/subject/wjceextx.html