Can ' t install Mysql-python version 1.2.5 in Windows http://stackoverflow.com/questions/37092125/cant-install-my Sql-python-version-1-2-5-in-windows
Up vote0down Votefavorite |
I have mysql-python v1.2.4 installed just fine in my machine (Windows 8). I am using Python 2.7. I always got the below error every time I try to upgrade to v1.2.5.
c:\ Users\user\appdata\local\programs\common\microsoft\visual c++ for python\
9.0\vc\bin\cl.exe/c/nologo/ox/md/w3/gs-/dndebug-dversion_info= (1,2,5, ' fi nal ', 1)-d__version__=1.2.5 "-IC:\Pro Gram Files (x86) \mysql\mysql Connector C 6. 0.2\include "-IC:\PYTHON27\INCLUDE-IC:\PYTHON27\PC/TC_MYSQL.C/ Fobuild\temp.wi n32-2.7\release_mysql.obj/zl _mysql.c _MYSQL.C: Fatal error C1083:cannot open include file: ' Config-win.h ': No such file or DIRECTORY  &N bsp; Error:command ' C:\Users\User\AppData\Local\Programs\Common\Microsoft \visual C + + for python\ 9.0\vc\bin\cl.exe ' failed with exit status 2
---------------------------------------- Rolling back uninstall of mysql-python Command "c:\python27\python.exe -u -c "import
Setuptools, tokenize; file= ' C: \users\user\appdata\local\temp\pip-build-utz7of\mysql-python\setup.py '; ex EC (Compile (GetAttr ( Tokenize, ' open ', open) (file). read (). replace (' \ r \ n ', ' \ n '), file, ' exec ') "Install--record C:\User S\user\appdata\local\temp\pip-osy _cg-record\install-record.txt--single-version-externally-managed--compile "Fai LED with error code 1 in c:\users\user\appdata\local\temp\pip-build-utz7of\MySQL-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. Python mysql python-2.7 mysql-python python-module
Share|improve this question |
edited May 17:57 magnus Lind oxlund 54 212 |
Asked 7 at 18:21 Aminah nuraini 1,836 |
|
|
|
I don ' t understand why does I get a down vote. It is similar to some questions, but I ' ve tried their solution and none work. Explain the vote reason if you want to act that way   ; – aminah nuraini May 9 at 4:28 |
|
what happened when you used the EXE installer? & nbsp; – Burhan khalid Span class= "comment-date" dir= "ltr" >May 9 at 4:46 |
|
it got installed just fine, but then I still fail to install Mys Ql-python – aminah nuraini may 9 at 4:49 |
|
how do you know it failed? Did your try to import it and get an error? – burhan khalid may 9 at 5:24 |
|
i keep getting the error I ' ve pasted in the question. Can ' t find Config-win.h, etc. – aminah nuraini may 9 at 5:54 |
| Show 1 more Comment |
1 Answer1Active oldest votes
Up vote0down voteaccepted |
I solved it myself. I Use the wheel installer from http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python. There is wheel packages there. The one amd64 refuses to install on my platform (Windows) and the other one works just fine. I mean the file with this name: MySQL_python-1.2.5-cp27-none-win32.whl
Then install it by running this below command in the same folder with the wheel package. pip install MySQL_python-1.2.5-cp27-none-win32.whl
Share|improve This answer |
|
Can ' t install Mysql-python version 1.2.5 in Windows