Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
Have you checked that when you installed Visual Studio, you installed the C++ compiler? It seems like a silly question, but this is the mistake I made. Check by going into the setup for visual studio (Programs and features: Modify "Visual Studio 2015"), then under Programming Languages->VC++
, make sure it's ticked.
- Run
pip install wheel
- Download lxml from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml, if your python version is 3.5 , download
lxml-3.6.4-cp35-cp35m-win32.whl
. - Run
python -m pip install lxml-3.6.4-cp35-cp35m-win32.whl
As an update to the answer from @davidsheldon above, if you want to use Visual Studio Build Tools 2017 instead of 2015, it will work.
I found that the default install of the build tools stand alone was not enough, however, I added `VC++ 2015.3 ... toolset for desktop (x86,x64) and then python was happy: