durante la ejecución de un script en Python, tengo este errorInstalación módulo lxml en Python
from lxml import etree
ImportError: No module named lxml
ahora he intentado instalar lxml
sudo easy_install lmxl
pero me da el siguiente 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 **
Usando la configuración de compilación de libxslt
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
y libxml2-dev y libxslt-dev. –
** libxslt ** no parece ser necesario (no fue para mí, al menos). Por lo tanto, 'apt-get install python-dev libxml2 libxml2-dev libxslt-dev' debería ser suficiente – Matt
Tuve que hacer esto para instalar WeasyPrint, sus instrucciones' apt-get' solo para Debian 7 no funcionaron. – cnst