Error installing python-docx
<p>Trying to install python-docx through pip for 'Learn to Automate the Boring Things with Python'. I am getting errors like <a href="http://imgur.com/a/el2oY" rel="nofollow">this</a>. </p>

<p>I have Googled up some solutions to this issue, but they don't seem to work for me, or I am not deploying the solution correctly. </p>

<p>One post on Stackoverflow said to download an lxml file made available by <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml" rel="nofollow">Christoph Golke</a>. </p>

<p>I downloaded, and then tried 'pip install lxml', and basically got the same error message as the screenshot, telling me 'Unable to find vcvarsall.bat'.</p>

<p>Am I supposed to put this file in a certain directory, before executing that command? Any help would be appreciated. </p>

<p>so I found the answer to this issue.</p>

<p>So I wasn't aware that to install the lxml file, you first need to change to the directory of that file, and type in the <strong>complete name</strong> of that file. Either that, or typing the path of the lxml file directly into the cmd prompt, like:</p>

<pre><code>pip install C:\Users\yourName\Downloads\lxml-3.6.4-cp35-cp35m-win32
</code></pre>

<p>or </p>

<pre><code>cd C:\Users\yourName\Downloads
pip install lxml-3.6.4-cp35-cp35m-win32
</code></pre>

<p>which successfully installed the lxml file, which then led to a successful installation of the python-docx file. </p>

<p>Essentially, a basic knowledge of the command prompt would've helped me avoid this problem...but hope this helps for anyone else who doesn't know what to do!</p>

python python-2.7 python-3.x pip