подскажите пожалуйста как установить библиотеку lxml в linux mint
я деалю следующее: в .profile добавляю:
export WORKON_HOME=$HOME/.virtualenvs/moda_project
export PROJECT_HOME=$HOME/.virtualenvs/moda_project/moda
не забываю сделать:
source .profile
затем активирую виртуальное окружение и в соответствии с этим выполняю в консоли:
pip install lxml
в результате получаю следующее сообщение(привожу только последний фрагмент):
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.linux-x86_64-3.4
creating build/temp.linux-x86_64-3.4/src
creating build/temp.linux-x86_64-3.4/src/lxml
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/home/kalinin/.virtualenvs/moda_project/moda_env/build/lxml/src/lxml/includes -I/usr/include/python3.4m -I/home/kalinin/.virtualenvs/moda_project/moda_env/include/python3.4m -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-3.4/src/lxml/lxml.etree.o -w
In file included from src/lxml/lxml.etree.c:239:0:
/home/kalinin/.virtualenvs/moda_project/moda_env/build/lxml/src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory
#include "libxml/xmlversion.h"
^
compilation terminated.
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /home/kalinin/.virtualenvs/moda_project/moda_env/bin/python3 -c "import setuptools, tokenize;__file__='/home/kalinin/.virtualenvs/moda_project/moda_env/build/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-o720z8dc-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/kalinin/.virtualenvs/moda_project/moda_env/include/site/python3.4 failed with error code 1 in /home/kalinin/.virtualenvs/moda_project/moda_env/build/lxml
Storing debug log for failure in /home/kalinin/.pip/pip.log