Error "Cannot find vcvarsall.bat" in windows

6 hours ago, I started looking for a solution to compile c-extensions for python 2.7 on Windows 7.

I tried all possible solutions, for example, to take an older version of MINGW or try it using tdm-mingw version (4.4.) Also I tried to change

"- Wall -mno-cygwin"

from cygwinccompiler and created a new distutils.cfg file with a new assembly

but I still get "at least" this error:

"error: 'gcc' command failed with exit status 1"

Is there anyone who can compile something like "pip install lxml" under windows?

If yes ... please share your wisdom ...;) What version of MINGW are you using ... what is your version of python or what does your modified cygwinccompiler.py look like?

+5
source share
1 answer

Have you tried the Microsoft Visual C ++ Compiler?

If not, you can download "Microsoft Visual C ++ Compiler for Python 2.7" to find out if you can avoid the "Could not find vcvarsall.bat" error: https://www.microsoft.com/en-us/download /details.aspx?id=44266

This usually works for me on Windows with Python 2.7

+3
source

All Articles