Description
oorel@mash2527:$$sudo pip install python-amazon-simple-product-api
oorel@mash2527:
Requirement already satisfied (use --upgrade to upgrade): python-amazon-simple-product-api in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): bottlenose in /usr/local/lib/python2.7/dist-packages (from python-amazon-simple-product-api)
Downloading/unpacking lxml (from python-amazon-simple-product-api)
Downloading lxml-4.3.3.tar.gz (4.4MB): 4.4MB downloaded
Running setup.py (path:/tmp/pip_build_root/lxml/setup.py) egg_info for package lxml
Building lxml version 4.3.3.
Building without Cython.
ERROR: /bin/sh: 1: xslt-config: not found
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
warning: no previously-included files found matching '*.py'
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/local/lib/python2.7/dist-packages (from python-amazon-simple-product-api)
Installing collected packages: lxml
Running setup.py install for lxml
Building lxml version 4.3.3.
Building without Cython.
ERROR: /bin/sh: 1: xslt-config: not found
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
building 'lxml.etree' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc/lxml/includes -I/usr/include/python2.7 -c src/lxml/etree.c -o build/temp.linux-x86_64-2.7/src/lxml/etree.o -w
src/lxml/etree.c:97:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 1
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInitZXlX0g.c -o tmp/xmlXPathInitZXlX0g.o
/tmp/xmlXPathInitZXlX0g.c:1:26: fatal error: libxml/xpath.h: No such file or directory
#include "libxml/xpath.h"
^
compilation terminated.
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-v84ZR4-record/install-record.txt --single-version-externally-managed --compile:
Building lxml version 4.3.3.
Building without Cython.
ERROR: /bin/sh: 1: xslt-config: not found
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
running install
running build
running build_py
creating build