Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Unable to find vcvarsall.bat" error on windows

Tags:

python

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?

like image 718
Jurudocs Avatar asked Oct 21 '22 16:10

Jurudocs


1 Answers

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

like image 60
RasikhJ Avatar answered Nov 04 '22 20:11

RasikhJ