I have mysql-python
v1.2.4 installed just fine on my machine (Windows 8). I am using Python 2.7. I always got this below error every time I try to upgrade to v1.2.5.
C:UsersUserAppDataLocalProgramsCommonMicrosoftVisual C++ for Python
9.0VCBincl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Dversion_info=(1,2,5,'fi nal',1) -D__version__=1.2.5 "-IC:Program Files (x86)MySQLMySQL Connector C 6. 0.2include" -Ic:python27include -Ic:python27PC /Tc_mysql.c /Fobuild emp.wi n32-2.7Release_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:UsersUserAppDataLocalProgramsCommonMicrosoft Visual C++ for Python9.0VCBincl.exe' failed with exit status 2
---------------------------------------- Rolling back uninstall of mysql-python Command "c:python27python.exe -u -c "import
setuptools, tokenize;file='c: usersuserappdatalocal emppip-build-utz7ofMySQL-pythonsetup.py';ex ec(compile(getattr(tokenize, 'open', open)(file).read().replace('
', '
' ), file, 'exec'))" install --record c:usersuserappdatalocal emppip-osy _cg-recordinstall-record.txt --single-version-externally-managed --compile" fai led with error code 1 in c:usersuserappdatalocal emppip-build-utz7ofMySQL -python
I've tried (and none work):
- Installing VS2010
- Changing Python Path
- Using Wheel module (I got
Failed building wheel for MySQL-python
)
- Installing Python MySQL connector. For both Python and C.
- Installing
mysqlclient
- Installing using Exe installer from https://pypi.python.org/pypi/mysql-python/1.2.5
Do I miss something? Thanks.
mysql-python
– Aminah Nuraini May 9 at 4:49