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.
- Now run
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.