Open jovimon opened 9 years ago
mysqlclient provides wheels
Similar Error on 64bit Win7 SP1 with preinstalled python27(64bit), mysql-connector-c-6.1.2, VCForPython27.msi
P:\Install\Python\MySQL-python-1.2.5>python setup.py install
running install
running bdist_egg
running egg_info
writing MySQL_python.egg-info\PKG-INFO
writing top-level names to MySQL_python.egg-info\top_level.txt
writing dependency_links to MySQL_python.egg-info\dependency_links.txt
reading manifest file 'MySQL_python.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MySQL_python.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
copying MySQLdb\release.py -> build\lib.win-amd64-2.7\MySQLdb
running build_ext
building '_mysql' extension
C:\Users\peter\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" -IC:\Python27\include -IC:\Python27\PC /Tc_mysql.c /Fobuild\temp.win-amd64-2.7\Release\_mysql.obj /Zl _mysql.c
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
error: command 'C:\\Users\\peter\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
I found that the 6.1 connector breaks mysqldb install as there is no more config-win.h .. you can still download 6.0.2 form oracle which worked for me.
mysqlclient supports MySQL Connector/C 6.1.
I couldn't install MySQL-python module through pip on Windows 8.1 x64 because the site.cfg file points to the 32 bits version of the MySQL connector. To solve it I had to download source and modify it, removing the "(x86)" from connector variable:
connector = C:\Program Files\MySQL\MySQL Connector C 6.0.2
Could you add a check so if you are building on a Win x64 platform use the x64 version of the connector?
Also a little description of the install prerequisites on INSTALL file or on a webpage would be nice. Prior to installation I had to download:
Thank you very much.