Install MySQL-Python when connecting python and MySQL on windows. MySQL-Python installation requires MySQL Connector C. http://dev.mysql.com/downloads/connector/c/
The latest version of the software as of May 2013 is as follows, MySQL-Python 1.2.4 MySQL Connector C 6.1
$ pip install mysql-python
When I run, it fails to install with the following error:
Unable to open include file. 'config-win.h': No such file or directory
The cause of the error is that the versions of both software are incompatible and the directory cannot be found.
The following article is a post to the same effect, but MySQL-Python 1.2.4 is a build that fixes this bug, and this time you don't need to modify site.cfg like the link. [Stack Overflow]mysql-python install problem using virtualenv, windows, pip http://stackoverflow.com/questions/1972259/mysql-python-install-problem-using-virtualenv-windows-pip
MySQL-Python 1.2.4 supports the specification of MySQL Connector C 6.0.2, so make sure to install v6.0.2.
MySQL Connector C and earlier versions can be downloaded here http://dev.mysql.com/downloads/connector/c/6.0.html
Recommended Posts