While trying to start local Google App Engine (v1.3.8) Server on my Fedora 14 with Python 2.5 (installed from source) I get the importerror
当我尝试在我的Fedora 14上启动本地谷歌应用程序引擎(v1.3.8)时,使用Python 2.5(从源代码安装),我得到了importerror。
ImportError: No module named _sqlite3
I have the following package installed - sqlite, sqlite-devel, python2.5, python2.7. I did some Google and it looks like this error comes when there is no C binding for sqlite. However, since I have both the sqlite and sqlite-devel installed C bindings should be present. I get this same error when I do
我已经安装了以下软件包- sqlite, sqlite-devel, python2.5, python2.7。我做了一些谷歌,看起来这个错误是在sqlite没有C绑定的时候出现的。但是,由于我同时拥有sqlite和sqlite-devel,所以应该存在C绑定。我在做的时候也会犯同样的错误。
import sqlite3
on Python console. What possibly can I do to resolve this error?
在Python控制台。我能做些什么来解决这个错误呢?
2 个解决方案
#1
8
Install sqlite-devel
and rebuild Python.
安装sqlite-devel并重新构建Python。
#2
3
This works equally on Ubuntu 10.10 using
这在Ubuntu 10.10中同样有效。
$ sudo aptitude install sqlite3 libsqlite3-dev
$ sudo资质安装sqlite3 libsqlite3-dev。
and rebuilding Python.
Python和重建。
#1
8
Install sqlite-devel
and rebuild Python.
安装sqlite-devel并重新构建Python。
#2
3
This works equally on Ubuntu 10.10 using
这在Ubuntu 10.10中同样有效。
$ sudo aptitude install sqlite3 libsqlite3-dev
$ sudo资质安装sqlite3 libsqlite3-dev。
and rebuilding Python.
Python和重建。