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

然后就可以了。

  

你可能感兴趣的:(sqlite3)