Problem with Python: cannot find vcvarsall.bat

Possible duplicate:
Error: Could not find vcvarsall.bat

I am trying to install the MySql interface for python, but I have an error (mentioned below). And I know the solution: install Microsoft Visual C ++. Is there an alternative solution besides installing Microsoft Visual C ++? I mean, it really hurt me; why should I install Microsoft Visual C ++ just because itโ€™s a useless and distracting approach from the point of view of the developer to create this single package. Is there an alternative solution to this problem?

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 am using Python 2.6 on Windows XP.

+54
python mysql
Feb 16 '10 at 12:23
source share
6 answers

You will need the MSVC compiler or mingw32 to compile it, as well as the MySQL Header files.

I compiled once for MySQL1.2.3c1 for Python2.6, you can find it here .

+47
Feb 16 '10 at
source share

I understand that this issue has been around for more than a year now. However, YOU executables do not work on Win64 machines. I found the extremely useful Christopher Gohlke Python libraries: http://www.lfd.uci.edu/~gohlke/pythonlibs/ .

For MySQL-python on Win64 and Py27: http://www.lfd.uci.edu/~gohlke/pythonlibs/49ej5jcn/MySQL-python-1.2.3.win-amd64-py2.7.exe

+14
Nov 08 2018-11-11T00:
source share
+9
Jun 09 '10 at 11:07 on
source share

Installing mysql-python confusing. He wasted his hours to sort out mistakes. Finally, I meet here . It refers to a compiled file. Give it a try.

+8
Feb 23 '12 at 11:36
source share

I do not know if this will help you, but look at this forum topic , it may be a problem with the version.

There are important differences between several versions of VC ++. The most important mismatch is the runtime library version. each version of Visual Studio uses its own msvcrt dll. Command line options, legacy features, project file formats, and others are also slightly different.

+4
Feb 16 '10 at 12:29
source share

The easiest way for me was to go here http://sourceforge.net/projects/mysql-python/ and get the executable.

It made it easier.

+1
Dec 27 '12 at 20:40
source share



All Articles