Python 版本:2.6
下载地址:doc.guandang.net
下载msi文件并安装
MySQLdb版本: MySQL-python-1.2.2.win32-py2.6.exe
下载地址:doc.guandang.net
参见:doc.guandang.net
常见问题:
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下。
参见:doc.guandang.net
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,
参见:doc.guandang.net
附件:
libguide40.dll.zip(77.3 KB)
libmmd.dll.zip(169 KB)
libmySQL.dll.zip(861 KB)
Python安装MySQLDb模块的种种问题及解决 我的环境是:Linux version 2.4.21-4.EL (bhcompile@daffy.perf.redhat.com) (gcc version 3.2.3 20030502 (Red ...
python下的MySQLdb使用_计算机软件及应用_IT/计算机_专业资料。python下的MySQLdb使用下载安装 MySQLdb <1>linux 版本 http://sourceforge.net/projects/mysql-...
Python连接Mysql数据库_IT/计算机_专业资料。Python连接Mysql的相关资料总结,以及... Python:Mysql编程 3页 免费 Python进行Mysql操作 2页 免费 安装python-mysql ...
python2.7及mysql-python模块安装指南_计算机硬件及网络_IT/计算机_专业资料。python2.7及mysql-python模块安装指南升级至 python2.7、 mysql-python Linux下安装...
Python Mysql 编程 Python:Mysql 系统环境 Fedora 15, MySQL 5.5 安装 MySQLdb 模块 在 Fedora 环境下,我们可以很方便的使用强大的 yum 来安装兰州中研 $yum ...
MySQL的概述 MySQL的安装 MySQL服务的配置和使用 MySQL的图形化配置 安装phpMy...广泛的应用程序支持,有C、C++、Java、Perl、PHP和Python等多种客户工具和API 的...
一、安装python2.5并配置环境变量二、安装eclipse关于python 插件PyDev 三、安装Django框架四、安装用于与MySQL连接的工具五、安装PIL(Python Images Libraries)...
完成下列软件包是自动安装的并且现在不再被使用了: python-compizconfig使用’apt-get autoremove’来删除它们将会安装下列额外的软件包: libdbd-mysql-perl libdbi-...
DATABASE AND INFORMATION MANAGEMENT 数据库与信息管理 Python 访问 MySQL 数据库...记住,只要安装了 Python,所有这 些功能都是可用的,这被称作 Python 的“功能...
MySQL - 简介、安装教程、命令详解及操作实例、疑难解答_计算机软件及应用_IT/... Python操作Mysql实例代码... 9页 免费 0_数据库教程简介 暂无评价 15页 ...
热门文档