今晚上光折腾了mysql 和MySQL-python了:
下了MySQL-python-1.2.3.tar.gz 解压,运行python setup.py install 结果来了:
Traceback (most recent call last):
File "setup.py", line 15, in <module>
metadata, options = get_config()
File "D:\Jeffrey\Development\Software\MySQL-python-1.2.3\setup_windows.py", li
ne 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_ke
y'])
WindowsError: [Error 2]
这个问题应该是在setup_windows.py中无法获取Mysql的安装的key,根据网上的信息改了改:
首先在setup_windows.py里看到:
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
mysql_root, dummy = _winreg.QueryValueEx(serverKey,'Location')
就是在注册表找不到registry_key,这是在site.cfg里定义的:
registry_key = SOFTWARE\MySQL AB\MySQL Server 5.0,修改了一下site.cfg成:
registry_key = SOFTWARE\MySQL AB\MySQL Server 5.5
还是不行
后来看到http://hi.baidu.com/lettoo/blog/item/6980f086b8223a2b67096ef7.html,还是下了MySQL-python-1.2.3.win32-py2.7.exe,结果我误认为这是包含python27和mysql55的东西,把自己装的都卸载了,晕死!
全部重新来过,python27,setuptools-0.6c11.win32-py2.7.exe, mysql55, MySQL-python-1.2.3.win32-py2.7.exe, django。
终于搞定。。。
然后装了wingide-personal-4.1.3-1,试用版,明天试试效果如何
分享到:
相关推荐
win7 64位系统 MySQL-python 安装文件 本人亲自测试可用。 注意:只适用于python2 !python3已经删除了对此模块的支持。
将下载的MySQL-python-1.2.5的文件解压,然后打开编辑器编辑setup_posix,其中有一行mysql_config.path = "mysql_config",改为mysql_config.path = "/usr/local/Cellar/mysql-connector-c/6.1.11/bin/mysql_config...
1.安装python和mysql 这里就不多介绍了,很简单 2.安装setuptools ...3.下载编译版本 MySQL-python-1.2.3.win-amd64-py2.7.exe 双击安装 4.可以测试了 5.如果出错了,注意看下提示什么错误 直接解压就可以了~
MySQL-python-1.2.3
python MySQL-python模块 django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb. Did you install mysqlclient or MySQL-python?
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64的rpm包,供下载
非MySQL安装MySQL-python,有时不是数据库为封装的MySQL时,可以通过yum -y install mysql-devel 但有时不行,这是可按文档去更改MySQL-python
MySQL-python-1.2.3.win32-py2.7.exe MySQL-python-1.2.3.win-amd64-py2.7.exe
django,liunx下mysql数据库接口MySQL-python-1.2.3.tar.gz
MySQL-python-1.2.5.win-amd64-py2.7 亲测可用版 有效解决安装mysql-python时遇到的error: Unable to find vcvarsall.bat问题,哎,安装mingw什么的,都是浮云啊(搞了一个星期都没有成功啊)!还是这个有用!
python在windows中连接mysql的驱动MySQL-python-1.2.2.win32-py2.6 快速,安全,稳定
mysql-connector-python-2.1.7.tar.gz
自己用VC++6.0编译的 MySQL-python,需要 MySQL-5.1.34 的 libMySQL.dll 和Python2.6的“Set”有点兼容性问题,自己照着改一下: http://sourceforge.net/forum/message.php?msg_id=5808948 1)__init__.py 删除 ...
python连接mysql模块mysql-connector-python-2.1.1.tar.gz
MySQL-python-1.2.3.win32-py2.7.msi
mysql-connector-python-2.0.4-py3.4
Python 下MySQL-python-exe安装版
MySQL-python-1.2.5 mysqldb库.可以在win和linux下安装
mysql-connector-python-8.0.19-windows-x86-64bit,官网下载无改动。 MD5: 24551d3720abe8320cffd9d9c59f265c