tags:

views:

11434

answers:

3

I'm trying to install MySql interface for python,but I got an error(mentioned below).And I know the solution,install the Microsoft Visual C++.So what my question is there any alternative solution apart from installing Microsoft Visual C++,I mean it's really hurt me,why should I install Microsoft Visual C++ just because to build this single package it's a useless and time wasting approach from the developers perspective.So I kindly request from all of you please mention if you have any alternative solution for this issue.

MySQL-python-1.2.3c1>setup.py install
running install
running bdist_egg
running egg_info
writing MySQL_python.egg-info\PKG-INFO
writing top-level names to MySQL_python.egg-info\top_level.txt
writing dependency_links to MySQL_python.egg-info\dependency_links.txt
reading manifest file 'MySQL_python.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MySQL_python.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
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

I'm using Python 2.6 on Windows XP.

Thanks.

+1  A: 

I don't know whether it helps you, but check out this forum thread, it could be a version issue.

There are important differences between the several versions of VC++. The most important discrepancy is the runtime library version. Each version of Visual Studio uses its own msvcrt dll. The command line options, deprecated functions, project file formats and other things are also slightly different.

Pekka
Thanks alot it helped me alot
MMRUser
+10  A: 

You will need MSVC compiler or mingw32 to compile that, and also need MySQL Header files.

I've compiled once for MySQL1.2.3c1 for Python2.6, you could find it here.

S.Mark
Thanks! This is exactly what I needed!
Matt
You're welcome Matt
S.Mark
@S.Mark: Thank you! Very helpful!
LarsH
+4  A: 

You can also try this: http://blog.eddsn.com/2010/05/unable-to-find-vcvarsall-bat/

john