_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No
such file or directory
error: command '"C:\Users\mahendra.gaur\AppData\Local\Programs\Common\Microsof
t\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe"' failed with exit status 2然后,以下代码以红色显示
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:
\users\\mahend~1.gau\\appdata\\local\\temp\\pip-build-zxhadg\\MySQL-python\\set
p.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r
n', '\n'), __file__, 'exec'))" install --record c:\users\mahend~1.gau\appdata\l
cal\temp\pip-x_l2nw-record\install-record.txt --single-version-externally-manag
d --compile" failed with error code 1 in c:\users\mahend~1.gau\appdata\local\te
p\pip-build-zxhadg\MySQL-python发布于 2016-02-17 10:31:44
如果无法在Windows上编译包,则可以安装预编译的二进制文件:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python只需下载.whl文件并通过以下方法安装
pip install MySQL_python-1.2.5-cp27-none-win32.whl或
pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl取决于您的系统架构。
https://stackoverflow.com/questions/35454079
复制相似问题