0

Trying to install MySQL for Python. Two problems:

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 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.

Thanks for your help.

PS. I'm using a Mac + Leopard.

2 Answers 2

2

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/ .

Sign up to request clarification or add additional context in comments.

Comments

1

If you're using a Debian based distro you can :

apt-get install python-mysqldb ( or aptitude if you prefer ).

2 Comments

Forgot to mention: Using a Mac. Leopard.
Looks like there's py-mysql, py26-mysql, py25-mysql on MacPorts @ macports.org/ports.php?by=variant&substr=mysql4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.