After you install Python under Win7 and want to install Python-mysql, the following issues occur with PIP installation:
>pip Install Mysql-python
_MYSQL.C: Fatal error C1083:cannot open include file: ' Config-win.h ': No such file or directory Error:command ' "\ c \ Users\fnngj\appdata\local\programs\common\microsoft\visual C + + for Python\9.0\vc\bin\amd64\cl.exe "' failed with exit Status 2
The general explanation on the web is that reinstalling MySQL and installing MySQL is the option to install C + + compilers ...
I have not tried, but it certainly does not work ah, I just want to install a python can be remotely connected to the MySQL package, tube local MySQL what? Some explanations are really fraught.
But in the error hints also thanks to the lack of C + + environment, and later found on the Internet method:
Here's how:
1. In http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python download the corresponding package version, if it is Win7 64 bit 2.7 version of Python, download
Mysql_python-1.2.5-cp27-none-win_amd64.whl
Then execute pip install MYSQL_PYTHON-1.2.5-CP27-NONE-WIN_AMD64.WHL at the command line
Of course you need to jump to the directory under CMD to download MYSQL_PYTHON-1.2.5-CP27-NONE-WIN_AMD64.WHL
And then the installation was successful Mysql-python
Reference Links:
Http://www.cnblogs.com/fnng/p/4115607.html
_MYSQL.C: Fatal error C1083:cannot open include file: ' config-win.h ': Problem solving MySQL installation python