Installing lxml for Python 3.4 on Windows x 86 (32 bit) with Visual Studio C++ 2010 Express -
related
related questions:
related answers:
related comments:
- building lxml python 2.7 on windows
- "@ziyuang mean use python 3.3 uses microsoft visual studio 2010. if that's case answer yes, should install version."
facts
- windows x86 (32-bit)
- installed both visual studio c++ 2008 (from here) express , visual studio c++ 2010 (from here)
- python 3.4.1 (apparently compiled with newer version visual studio 2008)
- i use pip (or pip3.4.exe; builtin python 3.4)
pip install lxml
- distutils uses visual studio c++ 2010 express compile
the last few lines of error, logged pip:
cl : command line warning d9025 : overriding '/w3' '/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 exit status 2
so can't install .egg or compiling...
recourse
i can't find windows installer (exe or msi or whatever) version of python
- not here @ pypi
nor here @ chris' great site
looks chris does provide direct exe here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
thanks, chris! ideas why cannot compile using pip?
i got problem, workarounds provided above not work me well.
here system configuration:
- win7 64bit
- python3.3
- visual studio 2013
i tried use method in first link in related questions, it's fail. method create system variable vs2010 use, , variable copy original configuration in visual studio 2013.
however, command line prompted error "libxml/xmlversion.h" no suck file or directory
then further searched on internet , got method works in case.
downloading precompiled lxml plugin
precompiled lxml 3.5: https://pypi.python.org/pypi/lxml/3.3.5#downloads
if system 64bit, can unofficial version x64 @ here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml (this use)
installing command in command line easy_install lxml-3.2.1.win32-py3.3.exe
reference: https://pytools.codeplex.com/workitem/1520
Comments
Post a Comment