linux 執行django(python manage.py runserver),報錯No module named _sqlite3,須要安裝sqlite-devel,再從新編譯安裝python。python
一、安裝sqlite-devel linux
yum install sqlite-devel
二、從新安裝pythonsql
tar -zxf Python-2.7.3.tgz cd Python-2.7.3 ./configure make && make install
而後就能夠了。django