本文共 327 字,大约阅读时间需要 1 分钟。
准备在CentOs下安装django,但是,执行python manage.py runserver命令时,发生如下错误:django.core.exceptions.ImproperlyConfigured: Error loading either pysqlite2 or sqlite3 modules (tried in that order): No module named _sqlite3
解决方法:
需要安装sqlite的开发包。找到如下方法,安装sqllite的开发包,然后编译,成功!
1、yum install sqlite-devel
2、重新make python:
make
3、安装:
make install
(完)
转载地址:http://rvyai.baihongyu.com/