when running python script, I got this error
from lxml import etree ImportError: No module named lxml
now i tried installing lxml
sudo easy_install lmxl
but this gives me the following error:
Building lxml version 2.3.beta1. NOTE: Trying to build without Cython, pre-generated 'src/lxml/lxml.etree.c' needs to be available. ERROR: /bin/sh: xslt-config: not found ** make sure the development packages of libxml2 and libxslt are installed **
Using libxslt build configuration
src/lxml/lxml.etree.c:4: fatal error: Python.h: No such file or directory compilation terminated. error: Setup script exited with error: command 'gcc' failed with exit status 1
python lxml python-import
user563101 Jan 04 '11 at 20:45 2011-01-04 20:45
source share