Trying to install MySQL for Python . Two problems:
1) Instructions over the net says installation is
python setup.pyFor 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.Which simply leads to the package itself, not anything else.
This must be installed before you can use the Z MySQL DA. You can find this at: http://sourceforge.net/projects/mysql-python
Thanks for your help.
PS. I'm using a Mac + Leopard.
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/
.
If you're using a Debian based distro you can :
apt-get install python-mysqldb
( or aptitude if you prefer ).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.