python - Installing PyQuery Via Pip -
i'm attempting install pyquery
via pip
i'm getting error not understand. command used was:
sudo pip install pyquery
i output below:
requirement satisfied (use --upgrade upgrade): pyquery in /usr/local/lib/python2.7/dist-packages downloading/unpacking lxml>=2.1 (from pyquery) running setup.py egg_info package lxml /usr/lib/python2.7/distutils/dist.py:267: userwarning: unknown distribution option: 'bugtrack_url' warnings.warn(msg) building lxml version 3.3.0. building without cython. error: /bin/sh: 1: xslt-config: not found ** make sure development packages of libxml2 , libxslt installed ** using build configuration of libxslt downloading/unpacking cssselect (from pyquery) running setup.py egg_info package cssselect no previously-included directories found matching 'docs/_build' installing collected packages: lxml, cssselect running setup.py install lxml /usr/lib/python2.7/distutils/dist.py:267: userwarning: unknown distribution option: 'bugtrack_url' warnings.warn(msg) building lxml version 3.3.0. building without cython. error: /bin/sh: 1: xslt-config: not found ** make sure development packages of libxml2 , libxslt installed ** using build configuration of libxslt building 'lxml.etree' extension gcc -pthread -fno-strict-aliasing -dndebug -g -fwrapv -o2 -wall -wstrict-prototypes -fpic -i/home/imageek/scripts/facebook/build/lxml/src/lxml/includes -i/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.7/src/lxml/lxml.etree.o -w src/lxml/lxml.etree.c:16:20: fatal error: python.h: no such file or directory compilation terminated. error: command 'gcc' failed exit status 1 complete output command /usr/bin/python -c "import setuptools;__file__='/home/imageek/scripts/facebook/build/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-dyuzwz-record/install-record.txt: /usr/lib/python2.7/distutils/dist.py:267: userwarning: unknown distribution option: 'bugtrack_url' warnings.warn(msg) building lxml version 3.3.0. building without cython. error: /bin/sh: 1: xslt-config: not found ** make sure development packages of libxml2 , libxslt installed ** using build configuration of libxslt running install running build running build_py copying src/lxml/includes/lxml-version.h -> build/lib.linux-i686-2.7/lxml/includes running build_ext building 'lxml.etree' extension gcc -pthread -fno-strict-aliasing -dndebug -g -fwrapv -o2 -wall -wstrict-prototypes -fpic -i/home/imageek/scripts/facebook/build/lxml/src/lxml/includes -i/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.7/src/lxml/lxml.etree.o -w src/lxml/lxml.etree.c:16:20: fatal error: python.h: no such file or directory compilation terminated. error: command 'gcc' failed exit status 1 ---------------------------------------- command /usr/bin/python -c "import setuptools;__file__='/home/imageek/scripts/facebook/build/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-dyuzwz-record/install-record.txt failed error code 1 storing complete log in /home/imageek/.pip/pip.log
i have feeling it's dependencies, should 'pip' not automatically install dependencies?
you have missing dependencies. try running:
sudo apt-get install libxml2-dev libxslt1-dev python-dev
Comments
Post a Comment