简体   繁体   English

ImportError:在Python 2.7中没有名为_sqlite3的模块

[英]ImportError: No module named _sqlite3 with Python 2.7

Ive compiled python 2.7 and django 1.3. 我已经编译了python 2.7和django 1.3。 When working with django I find that it reports.. 使用django时,我发现它会报告。

ImportError: No module named _sqlite3

Ive ensure that all the correct sqlite packages are installed and recompiled but still no joy. Ive确保所有正确的sqlite软件包都已安装并重新编译,但仍然没有问题。

[root@monty Python-2.7.3]# rpm -qa | grep sql
sqlite-devel-3.3.6-5
postgresql-libs-8.1.23-6.el5_8
sqlite-3.3.6-5
python-sqlite-1.1.7-1.2.1
sqlite-devel-3.3.6-5
sqlite-3.3.6-5
python-sqlite2-2.6.3-1.el5.rf
postgresql-libs-8.1.23-6.el5_8

Thanks, 谢谢,

Install 安装

sqlite-devel 

and more importantly rebuild Python. 更重要的是重建Python。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM