需要帮助以Python安装MySQL [英] Need help installing MySQL for Python

查看:127
本文介绍了需要帮助以Python安装MySQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试安装 MySQL for Python 。两个问题:

1)网络上的说明说安装是

1) Instructions over the net says installation is

python setup.py


,结果是

For me, it results with

can't open file 'setup.py': [Errno 2] No such file or directory

2)README.txt说:

2) README.txt says:

The Z MySQL database adapter uses the MySQLdb package.
This must be installed before you can use the Z MySQL DA. You can find this at: http://sourceforge.net/projects/mysql-python


只会导致程序包本身,而不是任何东西

Which simply leads to the package itself, not anything else.

谢谢您的帮助。

PS。我使用的是Mac + Leopard。

PS. I'm using a Mac + Leopard.

推荐答案

您正在混淆 Zope产品 ZMySQLDA python-mysqldb 软件包。
如果没有帮助,请尝试下载文件之一,请访问
请注意,源干线显然分为 ZMySQLDA / MySQLdb /

You are confusing A Zope product (ZMySQLDA) with the python-mysqldb package. Try one of the download files, if it doesn't help, go for the source. Note that the source trunk is clearly divided into ZMySQLDA/ and MySQLdb/ .

这篇关于需要帮助以Python安装MySQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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