podczas uruchamiania skryptu Pythona, mam ten błądInstalacja modułu lxml w Pythonie
from lxml import etree
ImportError: No module named lxml
teraz Próbowałem zainstalować lxml
sudo easy_install lmxl
ale daje mi następujący błąd
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 **
Korzystanie z konfiguracji konfiguracji 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
i libxml2-dev i libxslt-dev. –
** libxslt ** nie wydaje się być wymagany (przynajmniej nie dla mnie). Dlatego 'apt-get install python-dev libxml2 libxml2-dev libxslt-dev' powinno wystarczyć – Matt
Musiałem to zrobić, aby zainstalować WeasyPrint, ich instrukcje' apt-get' dla samego Debiana 7 nie działały. – cnst