5

6 hours ago i started searching for a solution to compile the c extentions for python 2.7 on windows 7.

I tried all possible solutions like taking an older MINGW version or trying it with the tdm-mingw version (4.4.) Also i tried to change the

"-Wall -mno-cygwin"

from the cygwinccompiler and created the new file distutils.cfg with the new build

but i still get "at least" this error:

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

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

If yes... please share your wisdom...;) What kind of MINGW version are you running...what's your python version or how does your modified cygwinccompiler.py look like?

Mathew Thompson
  • 55,877
  • 15
  • 127
  • 148
Jurudocs
  • 8,595
  • 19
  • 64
  • 88

1 Answers1

3

Have you tried Microsoft's Visual C++ Compiler?

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

That usually works for me on Windows with Python 2.7

RasikhJ
  • 601
  • 5
  • 10