Python 版本:2.6
下载地址:http://www.python.org/download/releases/2.6.1/
下载msi文件并安装
MySQLdb版本: MySQL-python-1.2.2.win32-py2.6.exe
下载地址:http://home.netimperia.com/files/misc/MySQL-python-1.2.2.win32-py2.6.exe
参见:http://sourceforge.net/forum/forum.php?thread_id=2316047&forum_id=70460
常见问题:
1.ImportError: DLL load failed: 找不到指定的模块。
—————————————————————————————————-
D:\Program Files\Python2.6>python
Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import MySQLdb
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “D:\Program Files\Python2.6\Lib\site-packages\MySQLdb\__init__.py”, line 19, in <module>
import _mysql
ImportError: DLL load failed: 找不到指定的模块。
—————————————————————————————————-
解决方法:下载libmmd.dll(附件)和libguide40.dll(附件)两个dll文件并复制到python安装目录的Lib\site-packages下。
参见:http://sourceforge.net/forum/message.php?msg_id=5613887
2.ImportError: DLL load failed: 找不到指定的模块。
—————————————————————————————————-
D:\Program Files\Python2.6>python
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import MySQLdb
D:\Program Files\Python2.6\lib\site-packages\MySQLdb\__init__.py:34: DeprecationWarning: the sets module is deprecated
from sets import ImmutableSet
—————————————————————————————————-
解决方法:
1) file “__init__”, replace:
from sets import ImmutableSet
class DBAPISet(ImmutableSet):
with
class DBAPISet(frozenset)
2) file “converters.py”, remove:
from sets import BaseSet, Set
3) file “converters.py”, change “Set” by “set” (IMPORTANT: only two places):
line 48: return set([ i for i in s.split(',') if i ])
line 128: set: Set2Str,
参见:http://sourceforge.net/forum/message.php?msg_id=5808948
附件:
libguide40.dll.zip(77.3 KB)
libmmd.dll.zip(169 KB)
libmySQL.dll.zip(861 KB)
分享到:
相关推荐
NULL 博文链接:https://bask.iteye.com/blog/550290
NULL 博文链接:https://crazier9527.iteye.com/blog/390961
python在windows中连接mysql的驱动MySQL-python-1.2.2.win32-py2.6 快速,安全,稳定
天在电脑上安装MySQLdb的时候,使用该软件可直接将python2.6与mysql关联。
工欲齐善必先利其器,Win下的python插件神器,找了很久才找到的,值得收藏
MySQL-python-1.2.5.win32-py2.6
在http://sourceforge.net/projects/mysql-python下载的用于python2.6的mysqldb
MySQL-python-1.2.2.win-amd64-py2.6,好不容易才找到的
mysqldb python2.6 windows 打包成exe了 缺的两个dll libmmd.dll libguide40.dll 也都在里面
MySQL-python-1.2.3.win32-py2.6
python2.6-MySQLdb,包括python2.6安装包、MySQLdb for python2.6安装包、MySQLdb使用配置,为想学习Python操作mysql数据库的同学提供了极大的方便。。。
MySQL python-1.2.2.win32-py2.6.rar python 连接 mysql用module MySQL python-1.2.2.win32-py2.6.rar python 连接 mysql用module
请先安装python2.6 我的资源中有的下。再安装。这个安装包,
NULL 博文链接:https://pqcc.iteye.com/blog/511588
mysqldb官方提供 MySQL-python-1.2.3c1.win32-py2.6.exe
python2.6集成mysqldb完整包
MySQL-python-1.2.2.win32-py2.4.exe MySQL-python-1.2.2.win32-py2.5.exe MySQL-python-1.2.2.win32-py2.6.exe MySQL-python-1.2.2.tar.gz MySQL_python-1.2.3c1-py2.5-linux-i686.egg 更多到 iteedu.com/download
从mysql官网上下载mysql-server_5.7.21-1ubuntu14.04_amd64.deb-bundle.tar,然后进行离线安装,解压该安装包,会出现11个依赖包,按照顺序依次使用sudo dpkg -i 进行安装,中间会报错,显示缺少相应的依赖,具体...