Python论坛  - 讨论区

标题:[python-chinese] pysqlite 有没有可以跑在2.5上的版本?

2006年12月11日 星期一 11:41

OnMyWay onmyway.q在gmail.com
星期一 十二月 11 11:41:47 HKT 2006

找了很久,只有for 2.4的pysqlite,而且安装也不行。我的python是2.5

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

2006年12月11日 星期一 11:51

刘鑫 march.liu在gmail.com
星期一 十二月 11 11:51:22 HKT 2006

SQLite3ÏÖÔÚ²»ÊÇPythonµÄÄÚÖñê×¼¿âÁËô£¬ÄãÊÔÊÔ¿´import sqlite3

2006/12/11, OnMyWay <onmyway.q在gmail.com>:
>
> ÕÒÁ˺ܾã¬Ö»ÓÐfor 2.4µÄpysqlite,¶øÇÒ°²×°Ò²²»ÐС£ÎÒµÄpythonÊÇ2.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




-- 
»¶Ó­·ÃÎÊ£º
http://blog.csdn.net/ccat

ÁõöÎ
March.Liu
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20061211/70e7a81e/attachment-0001.html 

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

2006年12月12日 星期二 00:30

武长斌 chbin.w在gmail.com
星期二 十二月 12 00:30:09 HKT 2006

一直没有上2.5就是觉得很多库还有待完善。

在 06-12-11,刘鑫<march.liu at gmail.com> 写道:
> SQLite3现在不是Python的内置标准库了么,你试试看import sqlite3
>
> 2006/12/11, OnMyWay <onmyway.q at gmail.com>:
> > 找了很久,只有for 2.4的pysqlite,而且安装也不行。我的python是2.5
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> > Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
>
>
> --
> 欢迎访问:
> http://blog.csdn.net/ccat
>
> 刘鑫
> March.Liu
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>


-- 
武长斌
chbin.w at gmail.com

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

2006年12月12日 星期二 08:49

刘鑫 march.liu在gmail.com
星期二 十二月 12 08:49:27 HKT 2006

Õâ¸ö¿â²»Í¬£¬SQLiteÔÚPython2.5ÖÐÊÇÄÚÖñê×¼¿â¡£

2006/12/12, Î䳤±ó <chbin.w在gmail.com>:
>
> һֱûÓÐÉÏ2.5¾ÍÊǾõµÃºÜ¶à¿â»¹ÓдýÍêÉÆ¡£
>
> ÔÚ 06-12-11£¬ÁõöÎ<march.liu在gmail.com> дµÀ£º
> > SQLite3ÏÖÔÚ²»ÊÇPythonµÄÄÚÖñê×¼¿âÁËô£¬ÄãÊÔÊÔ¿´import sqlite3
> >
> > 2006/12/11, OnMyWay <onmyway.q在gmail.com>:
> > > ÕÒÁ˺ܾã¬Ö»ÓÐfor 2.4µÄpysqlite,¶øÇÒ°²×°Ò²²»ÐС£ÎÒµÄpythonÊÇ2.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
> >
> >
> >
> > --
> > »¶Ó­·ÃÎÊ£º
> > http://blog.csdn.net/ccat
> >
> > ÁõöÎ
> > March.Liu
> >
> > _______________________________________________
> > 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
> >
>
>
> --
> Î䳤±ó
> chbin.w在gmail.com
> _______________________________________________
> 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




-- 
»¶Ó­·ÃÎÊ£º
http://blog.csdn.net/ccat

ÁõöÎ
March.Liu
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20061212/0049244c/attachment.html 

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

2006年12月17日 星期日 22:28

dimens dimens在gmail.com
星期日 十二月 17 22:28:13 HKT 2006

ÔÚdjango-0.95°æÀﻹÊÇÓõÄpysqlite2£¬ÔÚ Django-0.95-py2.5.egg
/django/db/backends/sqlite3/base.pyÖÐÉùÃ÷ÈçÏÂ

"""
SQLite3 backend for django.  Requires pysqlite2 (http://pysqlite.org/).
"""

from django.db.backends import util
try:
    from pysqlite2 import dbapi2 as Database
    ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
except ImportError, e:
    from django.core.exceptions import ImproperlyConfigured
    raise ImproperlyConfigured, "Error loading pysqlite2 module: %s" % e

Èç¹ûÊÇpython2.5µÄ»°£¬ÓÉÓÚÄÚÖÃÁËsqlite3£¬ËùÒÔ²»ÐèÔÚ×°pysqlite2ÁË¡£
Òò´ËÈç¹ûÓÐÓÃPython2.5ºÍDjango0.95ºÍsqlite3Ò»Æð¹¤×÷µÄͬ־¾ÍÐèÒªÐÞ¸ÄÒ»ÏÂÉÏÃæµÄÄÇÒ»ÐУº

Ð޸ģº
from pysqlite2 import dbapi2 as Database
Ϊ£º
from sqlite3 import dbapi2 as Database

¾Í¿ÉÒÔÁË¡£

´ÓSVNÖÐÈ¡³öµÄ×îÐÂdjango°æ±¾ÒѾ­ÐÞÕýÁËÕâ¸öСÎÊÌâ¡£Ò²ÊÇÔÚbase.pyÖУ¬¶ÔÓ¦µÄ²¿·ÖÒѾ­±äΪ£º

"""
SQLite3 backend for django.  Requires pysqlite2 (http://pysqlite.org/).
"""

from django.db.backends import util
try:
    try:
        from sqlite3 import dbapi2 as Database
    except ImportError:
        from pysqlite2 import dbapi2 as Database
except ImportError, e:
    import sys
    from django.core.exceptions import ImproperlyConfigured
    if sys.version_info < (2, 5, 0):
        module = 'pysqlite2'
    else:
        module = 'sqlite3'
    raise ImproperlyConfigured, "Error loading %s module: %s" % (module, e)

Ó¦¸Ã¾ÍûÓÐÎÊÌâÁË¡£

*Forwarded Conversation*
Subject: *[python-chinese] pysqlite ÓÐûÓпÉÒÔÅÜÔÚ2.5Éϵİ汾£¿*
------------------------

* From: OnMyWay* <onmyway.q在gmail.com> Reply-To:
python-chinese在lists.python.cn
To: python-chinese <python-chinese在lists.python.cn>
Date: Mon, Dec 11, 2006 at 11:41 AM

ÕÒÁ˺ܾã¬Ö»ÓÐfor 2.4µÄpysqlite,¶øÇÒ°²×°Ò²²»ÐС£ÎÒµÄpythonÊÇ2.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

--------
* From: ÁõöÎ* <march.liu在gmail.com> Reply-To: python-chinese在lists.python.cn
To: python-chinese在lists.python.cn
Date: Mon, Dec 11, 2006 at 11:51 AM

SQLite3ÏÖÔÚ²»ÊÇPythonµÄÄÚÖñê×¼¿âÁËô£¬ÄãÊÔÊÔ¿´import sqlite3

2006/12/11, OnMyWay <onmyway.q在gmail.com>:[Quoted text hidden]



-- 
»¶Ó­·ÃÎÊ£º
http://blog.csdn.net/ccat

ÁõöÎ
March.Liu

_______________________________________________
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

--------
* From: Î䳤±ó* <chbin.w在gmail.com> Reply-To: python-chinese在lists.python.cn
To: python-chinese在lists.python.cn
Date: Tue, Dec 12, 2006 at 12:30 AM

һֱûÓÐÉÏ2.5¾ÍÊǾõµÃºÜ¶à¿â»¹ÓдýÍêÉÆ¡£

ÔÚ 06-12-11£¬ÁõöÎ<march.liu在gmail.com> дµÀ£º
[Quoted text hidden]
Î䳤±ó
chbin.w在gmail.com
[Quoted text hidden]

--------
* From: ÁõöÎ* <march.liu在gmail.com> Reply-To: python-chinese在lists.python.cn
To: python-chinese在lists.python.cn
Date: Tue, Dec 12, 2006 at 8:49 AM

Õâ¸ö¿â²»Í¬£¬SQLiteÔÚPython2.5ÖÐÊÇÄÚÖñê×¼¿â¡£

2006/12/12, Î䳤±ó <chbin.w在gmail.com>:[Quoted text hidden]



-- [Quoted text hidden]

_______________________________________________
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

--------
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20061217/944424db/attachment-0001.htm 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号