`
agile_boy
  • 浏览: 556839 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

ImportError: No module named _sqlite 测试失败提示

阅读更多
   自己编译pysqlite2的时候,编译安装成功没有错误提示,可是测试"from pysqlite2 import test"的时候,却出现错误:
  >>> from pysqlite2 import test
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "pysqlite2/test/__init__.py", line 25, in ?
    from pysqlite2.test import dbapi, types, userfunctions, factory, transactions,\
  File "pysqlite2/test/dbapi.py", line 26, in ?
    import pysqlite2.dbapi2 as sqlite
  File "pysqlite2/dbapi2.py", line 27, in ?
    from pysqlite2._sqlite import *
ImportError: No module named _sqlite
  感到比较郁闷,经google和摸索,发现只在build的跟目录下,才出现这个问题.
 
参考:https://www.redhat.com/archives/fedora-extras-list/2006-April/msg00853.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics