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?

mattytommo
  • 54,375
  • 15
  • 123
  • 144
Jurudocs
  • 7,505
  • 19
  • 60
  • 86

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
  • 581
  • 4
  • 10