Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
<p>I am on a windows 10 machine and recently moved from python 2.7 to 3.5. When trying to install lxml through pip, it stops and throws this error message- <br></p>

<blockquote>
  <p>building 'lxml.etree' extension<br>
  error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": <a href="http://landinghub.visualstudio.com/visual-cpp-build-tools" rel="noreferrer">http://landinghub.visualstudio.com/visual-cpp-build-tools</a></p>
</blockquote>

<p>I have a working copy of VS 2015 installed. When I try to install the visual cpp tools through that link, it says that Microsoft Visual Studio 2015 is already installed on the machine. I also tried installing visual studio c++ 2015 redistributables, both 64 and 32 bit versions, but both of them say that there's another version of the product already installed. <br>
typing set in the command prompt includes this - </p>

<blockquote>
  <p>VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\</p>
</blockquote>

<p>Which means that the path is set. <br>
This is probably the only resource I could find on SO, but the answer suggests rolling back to Python 3.4.3 from 3.5. Has anybody resolved problems of this kind?
<br>
<a href="https://stackoverflow.com/questions/29846087/microsoft-visual-c-14-0-is-required-unable-to-find-vcvarsall-bat">Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)</a><br>
EDIT: I managed to install it using the precompiled binary (Thanks Paul), but I would still like to know what's causing this.</p>