views:

334

answers:

1

When i try to install mysql on windows i get this error

MySQL-python-0.9.2>python setup.py build
running build
running build_py
running build_ext
building '_mysql' extension
error: Unable to find vcvarsall.bat
+3  A: 

I guess, you don't have visual c++ compiler installed or compiler not in the PATH.

If you have mingw32, you can pass paramter -c mingw32

And mysql-python is available as binary in windows, you may not need to compile yourself.

UPDATE: OP is using python 2.6, no binaries for 1.2.3 in mysql-python page for windows.

Here is the one I have compiled before

S.Mark
how can i check for that compiler? or from where i have to install that compiler?
Nil
Yes, MySQL-python core is written in C, also need MySQL header files, so you need some compiler but I think its hard to do that if you are not sure about compiling yourself, what is your python version and you want mysql-python 0.9.2 only? why not 1.2.2 or 1.2.3? Anyway, If you could provide that info I can suggest better.
S.Mark
ok i will install new one 1.2.2 or 1.2.3. I have python2.6
Nil
ok, for mysql-python 1.2.3 and python2.6, mysql-python page does not have windows binary, but I have compile it before, you can download here. http://soemin.googlecode.com/files/MySQL-python-1.2.3c1.win32-py2.6.exe
S.Mark