Building mySQL-python with python 2.6

Christian Heimes lists at cheimes.de
Wed May 27 08:58:40 EDT 2009


abolotnov schrieb:
> Hi, I am trying to build mySQL-python with python 2.6 on windows and
> can't figure what's wrong with it.
> 
> D:\temp\mysqlPyC\MySQL–python–1.2.3c1>python setup.py build
> running build
> running build_py
> copying MySQLdb\release.py –> build\lib.win32–2.6\MySQLdb
> running build_ext
> building '_mysql' extension
> error: Unable to find vcvarsall.bat
> 
> the vcvarsall.bat is in %path% though:
> 
> D:\temp\mysqlPyC\MySQL–python–1.2.3c1>vcvarsall.bat
> Setting environment for using Microsoft Visual Studio 2010 x86 tools.

You need Visual Studio 2008. Other versions of VS aren't supported by
Python 2.6.

Christian



More information about the Python-list mailing list