Q1.運行python manage.py runserver後,出現以下錯誤(CentOS6.5x86,Python2.7.12,Django1.10):python
django.core.exceptions.ImproperlyConfigured: Error loading either pysqlite2 or sqlite3 modules (tried in that order): No module named _sqlite3
解決方案: 其實是須要安裝sqlite的開發包,方法以下
1) yum install sqlite-devel
2) 從新make python:
make
3) 安裝:
make altinstallsql