Reputation: 372
My problem is not new and occurred to others with the same error (Unable to find vcvarsall.bat), while installing 'lxml'. I use Python 3.5 and windows 7. I tried to follow the recommended steps here but failed
I installed mingw32 to C:\programs\mingw\
Add mingw32's bin directory to your environment variable: append
c:\programs\MinGW\bin;
to the PATH
I went wrong here. May you explain me (simply) how to add mingw32's bin directory to the path?
Edit (create if not existing) distutils.cfg file located at C:\Python35\Lib\distutils\distutils.cfg to be:
[build]
compiler=mingw32
I didn't get this step at all.
pip install lxml
.I got this one and I made sure the environment was set by opening a new cmd.exe
.
Any advice to complete these steps would be greatly appreciated.
Upvotes: 0
Views: 2623
Reputation: 41
I should install Microsoft Visual C++ Compiler for Python 2.7 from ... https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
Upvotes: 1
Reputation: 7
I think installing mingw32 is not a good idea. Please follow these setps:
whl
and use pip install
command;Upvotes: 1