Я хочу установить Pyquery 1.2.4 версии, но когда я пытаюсьКак установить конкретную версию пакета с пипом
pip install pyquery==1.2.4
сталкиваются с
Compile failed: command 'gcc' failed with exit status 1
creating tmp
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInitXZJM6c.c -o tmp/xmlXPathInitXZJM6c.o
/tmp/xmlXPathInitXZJM6c.c:1:26: error: libxml/xpath.h: No such file or directory
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-cmQUrb/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-YFpKDF-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-cmQUrb/lxml
No matching distribution found for python-pyquery
Я знаю это, потому что моя версия Python (2.6), и я не могу обновить его до 2.7 из-за yum
Как я могу решить эту проблему?
Попробуйте это: 'Sudo APT-получить установку libxml2-DEV libxslt1-DEV питон-dev' – finnrayment