title: Installing lxml for Python 3.4 on Windows x 86 (32 bit) with Visual Studio C++ 2010 Express
body: <h2>Related</h2>
  
  <p>Related questions:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/q/2817869/1175496">error: Unable to find vcvarsall.bat</a></li>
  <li><a href="https://stackoverflow.com/q/22981951/1175496">LXML 3.3 with Python 3.3 on windows 7 32-bit</a> </li>
  </ul>
  
  <p>Related answers:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/a/18045219/1175496">https://stackoverflow.com/a/18045219/1175496</a></li>
  </ul>
  
  <p>Related comments:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/3047542/building-lxml-for-python-2-7-on-windows#comment-26574146">Building lxml for Python 2.7 on Windows</a></li>
  <li>"@ziyuang This would mean you use Python 3.3 which uses Microsoft Visual Studio 2010. If that's the case then the answer is yes, you should install this version."</li>
  </ul>
  
  <h2>Facts</h2>
  
  <ul>
  <li>Windows x86 (32-bit)</li>
  <li>Installed both Visual Studio C++ 2008 (<a href="http://download.microsoft.com/download/A/5/4/A54BADB6-9C3F-478D-8657-93B3FC9FE62D/vcsetup.exe" rel="nofollow noreferrer">from here</a>) Express and Visual Studio C++ 2010 (<a href="http://go.microsoft.com/?linkid=9709949" rel="nofollow noreferrer">from here</a>)</li>
  <li>Python 3.4.1 (apparently compiled <strong>with newer version</strong> than Visual Studio 2008)</li>
  <li>I use pip (or pip3.4.exe; builtin to Python 3.4) to <code>pip install lxml</code></li>
  <li>distutils uses Visual Studio C++ 2010 Express to compile</li>
  </ul>
  
  <p>The last few lines of my error, logged by pip:</p>
  
  <blockquote>
    <p>cl : Command line warning D9025 : overriding '/W3' with '/w'</p>
    
    <p>lxml.etree.c</p>
    
    <p>C:\Users\NATHAN~1\AppData\Local\Temp\pip_build_nathanielanderson\lxml\src\lxml\includes\etree_defs.h(9)
    : fatal error C1083: Cannot open include file: 'libxml/xmlversion.h':
    No such file or directory</p>
    
    <p>C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown
    distribution option: 'bugtrack_url'</p>
    
    <p>warnings.warn(msg)</p>
    
    <p>error: command 'C:\Program Files\Microsoft Visual Studio
    10.0\VC\BIN\cl.exe' failed with exit status 2</p>
  </blockquote>
  
  <p>So I can't install from the .egg or by compiling...</p>
  
  <h2>Other Options</h2>
  
  <p>I also can't find Windows installer (exe or msi or whatever) for this version of Python</p>
  
  <ul>
  <li>Not <a href="https://pypi.python.org/pypi/lxml/3.3.3" rel="nofollow noreferrer">here at PyPi</a></li>
  <li><s>Nor <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/" rel="nofollow noreferrer">here at Chris' great site</a></s></li>
  </ul>
  
  <p><strong>Update 10/16/2019</strong></p>
  
  <p>As commenter says, the executable links are no longer available</p>
  
  <ul>
  <li><a href="https://web.archive.org/web/20140911135250/http://www.lfd.uci.edu:80/~gohlke/pythonlibs/" rel="nofollow noreferrer">This archived version</a> (from 2014; executable links don't work) shows the old links </li>
  <li>As commenter says; <a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/" rel="nofollow noreferrer">the site</a>  currently has <code>whl</code> (wheel) files for the <code>lxml</code> library; you can <a href="https://stackoverflow.com/a/27909082/1175496">use <code>pip</code> to install from <code>whl</code> files</a></li>
  <li>Or check out <a href="https://pypi.org/project/lxml/3.3.5/#files" rel="nofollow noreferrer">this set of links</a> to executable files on <code>pypi.org</code>; the executables only range from 2.6, 2.7, 3.2, 3.3, and 3.4</li>
  </ul>
  
  <p><s>Looks like Chris <strong>does</strong> provide a direct exe here:</p>
  
  <p><a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml" rel="nofollow noreferrer">http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml</a></s></p>
  
  <p>Thanks, Chris! Any ideas why I cannot compile using pip?</p>