Python & MySQL Connector C 6.x Version Compatibility Note (windows)

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

Python & MySQL Connector C 6.x Version Compatibility Note (windows)
Install xgboost (python version) on Windows
[2021 version] Python installation Windows 10 (64bit) edition
[Python Windows] pip install with Python version
VScode environment construction (Windows10, Python, C ++, C, Git)
Use without installing python 2.x on Windows
Call a command from Python (Windows version)
Note: Python
Python note
Python environment construction (Anaconda + VSCode) @ Windows10 [January 2020 version]
GUI automation with Python x Windows App Driver
Note on encoding when LANG = C in Python
A note about the python version of python virtualenv
[Note] Installing Python 3.6 + α on Windows and RHEL
Django Getting Started Part 3 about Python3 & MySQL Connector
Install ZIP version Python and pip on Windows 10