Python论坛  - 讨论区

标题:[python-chinese] py2.5里import sqlite3出错

2007年07月08日 星期日 21:03

mouqx xu zsuxqm在gmail.com
星期日 七月 8 21:03:22 HKT 2007

>>> import sqlite3
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/gecko/python//lib/python2.5/sqlite3/__init__.py", line
24, in 
    from dbapi2 import *
  File "/home/gecko/python//lib/python2.5/sqlite3/dbapi2.py", line 27,
in 
    from _sqlite3 import *
ImportError: No module named _sqlite3

sqlite3不是py2.5的内置标准库吗?为什么出错的?

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年07月08日 星期日 21:06

赵威 zhaoweikid在163.com
星期日 七月 8 21:06:24 HKT 2007

mouqx xu,您好!

	在linux里不是默认的,因为linux下需要你先安装了sqlite3才可能编译出sqlite3模块。


======= 2007-07-08 21:03:22 您在来信中写道:=======

>>>> import sqlite3
>Traceback (most recent call last):
>  File "", line 1, in 
>  File "/home/gecko/python//lib/python2.5/sqlite3/__init__.py", line
>24, in 
>    from dbapi2 import *
>  File "/home/gecko/python//lib/python2.5/sqlite3/dbapi2.py", line 27,
>in 
>    from _sqlite3 import *
>ImportError: No module named _sqlite3
>
>sqlite3不是py2.5的内置标准库吗?为什么出错的?
>_______________________________________________
>python-chinese
>Post: send python-chinese在lists.python.cn
>Subscribe: send subscribe to python-chinese-request在lists.python.cn
>Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
>Detail Info: http://python.cn/mailman/listinfo/python-chinese

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        赵威
        zhaoweikid在163.com
          2007-07-08


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年07月09日 星期一 10:00

马踏飞燕 honeyday.mj在gmail.com
星期一 七月 9 10:00:05 HKT 2007

装一个bin格式的python就好了。

2007/7/8, mouqx xu <zsuxqm在gmail.com>:
> >>> import sqlite3
> Traceback (most recent call last):
>  File "", line 1, in 
>  File "/home/gecko/python//lib/python2.5/sqlite3/__init__.py", line
> 24, in 
>    from dbapi2 import *
>  File "/home/gecko/python//lib/python2.5/sqlite3/dbapi2.py", line 27,
> in 
>    from _sqlite3 import *
> ImportError: No module named _sqlite3
>
> sqlite3不是py2.5的内置标准库吗?为什么出错的?
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号