python 2.6+ (win32) 上的 mysqldb

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/685869/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 20:37:56  来源:igfitidea点击:

mysqldb on python 2.6+ (win32)

pythonmysql

提问by PierrOz

I am currently using python 2.6 and I would like to use the win32 mysqldb module. Unfortunately it seems it needs the 2.5 version of Python. Is there any way to get rid of this mismatch in the version numbers and install mysqldb with python 2.6?

我目前使用的是 python 2.6,我想使用 win32 mysqldb 模块。不幸的是,它似乎需要 2.5 版本的 Python。有什么办法可以消除版本号中的这种不匹配,并使用 python 2.6 安装 mysqldb?

回答by Daniel Delaney

There are versions of mysqldb for python 2.6, they're just not available on the official site. It took me a while (and unfortunately I lost the link) but you can search google and find people who have compiled and released 2.6 versions of mysqldb for windows x64 and x32.

有适用于 python 2.6 的 mysqldb 版本,它们只是在官方网站上不可用。我花了一段时间(不幸的是我失去了链接)但是你可以搜索谷歌并找到已经编译并发布了适用于 Windows x64 和 x32 的 mysqldb 2.6 版本的人。

EDIT:

编辑:

http://sourceforge.net/forum/forum.php?thread_id=3108914&forum_id=70460

http://sourceforge.net/forum/forum.php?thread_id=3108914&forum_id=70460

http://sourceforge.net/forum/forum.php?thread_id=2316047&forum_id=70460

http://sourceforge.net/forum/forum.php?thread_id=2316047&forum_id=70460

That fourm has a link to versions of mysqldb for Python 2.6

该 Fourm 有一个链接到 Python 2.6 的 mysqldb 版本

回答by PierrOz

This one has both 32 and 64 versions for 2.6:
http://www.codegood.com/archives/4

这个有 2.6 的 32 和 64 版本:http:
//www.codegood.com/archives/4