准备在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 (责任编辑:IT) |