No module named _sqlite3 django python manage.py runserver

linux 执行django(python manage.py runserver),报错No module named _sqlite3,需要安装sqlite-devel,再重新编译安装python。

1、安装sqlite-devel 

yum install sqlite-devel

 

2、重新安装python

tar -zxf Python-2.7.3.tgz 
cd Python-2.7.3   
./configure
make && make install

然后就可以了。

  

posted @ 2015-01-19 17:42  BlueBreeze  阅读(2105)  评论(0编辑  收藏  举报