Related
Related questions:
Related answers:
Related comments:
- Building lxml for Python 2.7 on Windows
- "@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."
Facts
- Windows x86 (32-bit)
- Installed both Visual Studio C++ 2008 (from here) Express and Visual Studio C++ 2010 (from here)
- Python 3.4.1 (apparently compiled with newer version than Visual Studio 2008)
- I use pip (or pip3.4.exe; builtin to Python 3.4) to
pip install lxml
- distutils uses Visual Studio C++ 2010 Express to compile
The last few lines of my error, logged by pip:
cl : Command line warning D9025 : overriding '/W3' with '/w'
lxml.etree.c
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
C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
error: command 'C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\cl.exe' failed with exit status 2
So I can't install from the .egg or by compiling...
Other Options
I also can't find Windows installer (exe or msi or whatever) for this version of Python
Update 10/16/2019
As commenter says, the executable links are no longer available
- This archived version (from 2014; executable links don't work) shows the old links
- As commenter says; the site currently has
whl
(wheel) files for thelxml
library; you can usepip
to install fromwhl
files - Or check out this set of links to executable files on
pypi.org
; the executables only range from 2.6, 2.7, 3.2, 3.3, and 3.4
Looks like Chris does provide a direct exe here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
Thanks, Chris! Any ideas why I cannot compile using pip?
whl
files is straightforward and can be done instead ofexe
. Otherwise try this site (thanks to accepted answer) – Bookkeeper