4

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
2
  • 1
    what happens when you try > python setup.py install ? Commented Jan 7, 2010 at 12:05
  • When i instlal i get this error Commented Jan 7, 2010 at 12:41

1 Answer 1

5

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

Sign up to request clarification or add additional context in comments.

3 Comments

how can i check for that compiler? or from where i have to install that compiler?
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.
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. soemin.googlecode.com/files/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.