_mysql.c
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No s uch 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
安装模块是注意:
需要与python安装的位数对应,即 python 32位的,则模块了需要 32位的
默认一般是从: https://pypi.python.org/pypi/MySQL-python/ 下载安装,但会不成功,换成下面这样安装就好了
www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python
下载 MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl,然后用 pip 进行安装
即: pip MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl install