durante l'esecuzione di uno script python, ho ottenuto questo errorel'installazione del modulo lxml in python
from lxml import etree
ImportError: No module named lxml
ora ho provato ad installare lxml
sudo easy_install lmxl
ma mi dà il seguente errore
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 costruire configurazione del 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
e libxml2-dev e libxslt-dev. –
** libxslt ** non sembra richiesto (non era per me, almeno). Pertanto, 'apt-get install python-dev libxml2 libxml2-dev-libxslt dev' dovrebbe essere abbastanza – Matt
ho dovuto fare questo per installare WeasyPrint, loro' istruzioni apt-GET' per Debian 7 da solo non ha funzionato. – cnst