Error when install python mysql module on windows?

mysql, python, windows

Solution

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

Problem

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 ```

Original source