使用Wamp的mysql安装python-mysql [英] Installing python-mysql with wamp's mysql

查看:77
本文介绍了使用Wamp的mysql安装python-mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(我不确定是否应该在此处或SU ..上看到这个问题关于SO的问题,我在这里问...)

(I'm not sure if this should be asked here or SU.. but seeing this question on SO, I am asking it here...)

我在vista机器上安装了wamp(mysql-5.1.33)服务器,并且尝试安装python-mysql 1.2.3c1以使用wamp提供的mysql版本.

I have wamp (mysql-5.1.33) server setup on my vista machine, and I am trying to install python-mysql 1.2.3c1 to use the mysql version provided by wamp.

起初,当我运行python setup.py install时,出现一个错误,提示它找不到mysql的bin文件夹的位置.在查看setup_windows.py时,我发现它正在寻找注册表项,因此我添加了该注册表项,我认为它现在可以找到它.

At first, when I ran python setup.py install, I got an error saying it couldn't find the location of the mysql's bin folder. Looking into setup_windows.py, I noticed it was looking for a registry key and so I added that registry entry and I think it is able to find it now.

但是现在,当我运行python setup.py install时,出现了另一个错误,提示Unable to find vcvarsall.bat.

But now, when I run python setup.py install, I get a different error saying Unable to find vcvarsall.bat.

任何有关安装此功能的帮助.

Any help on installing this appreciated.

running install
running bdist_egg
running egg_info
writing MySQL_python.egg-info\PKG-INFO
writing top-level names to MySQL_python.egg-info\top_level.txt
writing dependency_links to MySQL_python.egg-info\dependency_links.txt
reading manifest file 'MySQL_python.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MySQL_python.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
copying MySQLdb\release.py -> build\lib.win32-2.6\MySQLdb
running build_ext
building '_mysql' extension
error: Unable to find vcvarsall.bat

非常感谢!

推荐答案

您可以使用mysql-python的sourceforge页面上可用的预编译二进制文件. 1.2.2版具有适用于python2.4和python2.5的二进制安装程序

You can use a precompiled binary available at sourceforge page of mysql-python. The version 1.2.2 has the binary installer for python2.4 and python2.5

如果要搜索python2.6二进制文件,请在此处找到它- http://www.codegood .com/archives/4

If you are searching for python2.6 binaries, find it here - http://www.codegood.com/archives/4

这篇关于使用Wamp的mysql安装python-mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆