Closed tongorz closed 5 years ago
This does not look like related to to PyPy itself,
cc -pthread -DNDEBUG -O2 -I/usr/include/libxml2 -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc/lxml/includes -I/root/pypy/include -c src/lxml/etree.c -o build/temp.linux-x86_64-2.7/src/lxml/etree.o -w
In file included from src/lxml/etree.c:661:0:
src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory
compilation terminated.
this suggests that you didnt install libxml2 header files.
@squeaky-pl Thank you! "pip install lxml" works successfully for pypy6.0, but failed for portable-pypy6.0. How could I install libxml2 manually for portable-pypy6.0?
pyyp -m ensurepip
pypy -m pip install lxml
works for me
here is the error
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Collecting lxml Downloading https://mirrors.aliyun.com/pypi/packages/54/a6/43be8cf1cc23e3fa208cab04ba2f9c3b7af0233aab32af6b5089122b44cd/lxml-4.2.3.tar.gz (4.4MB) 100% |████████████████████████████████| 4.4MB 6.6MB/s Installing collected packages: lxml Running setup.py install for lxml ... error Complete output from command /root/pypy/bin/pypy -u -c "import setuptools, tokenize;file='/tmp/pip-install-YNcopC/lxml/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-aGOeMR/install-record.txt --single-version-externally-managed --compile: Building lxml version 4.2.3. Building without Cython. ERROR: /bin/sh: 1: xslt-config: not found
Command "/root/pypy/bin/pypy -u -c "import setuptools, tokenize;file='/tmp/pip-install-YNcopC/lxml/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-aGOeMR/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-YNcopC/lxml/