Hi, I'd like to install lxml.
I installed python2, and pip2 works for many packages, but not for lxml (pyconfig.h not found)
Anybody had success installing it?
Thanks :)
Hi, pyconfig.h can be installed from the python2-dev package! Does installing lxml work for you after that?
installed the package, now fails including libxml/xmlversion.h
thanks
EDIT:
installing libxml2-dev, fails same way
I reproduced the problem:
In file included from src/lxml/lxml.etree.c:239:0:
/data/data/com.termux/files/usr/tmp/pip-build-Vw5Hjr/lxml/src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory
#include "libxml/xmlversion.h"
The file $PREFIX/include/libxml2/libxml/xmlversion.h exists after installing libxml2-dev, but is not found since -I$PREFIX/include/libxml2 is not used when compiling for some reason...
Hi, the issue was that the libxml2-dev package lacked the xml2-config utility which lxml needs to build.
This has now been fixed, run apt update && apt upgrade and try to install lxml again.
Re-open the issue if it still doesn't work for you!
The problem seems to be unsolved.
/data/data/com.termux/files/usr/tmp/xmlXPathInit0mNYHx.c:1:10: fatal error: 'libxml/xpath.h' file not found
#include "libxml/xpath.h"
^
1 error generated.
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'aarch64-linux-android-gcc' failed with exit status 1 ----------------------------------------
Here's what I got.
@Jim-Zenn Have you installed libxml2-dev with apt install libxml2-dev?
Yes, I have. Can you reproduce this issue?
It seems I succeeded to install after installing libxml2-utils, thanks!
hey @fornwall I still got this issue even though I already install libxml2 libxml2-dev and libxml2-utils, how can I found a workaround?
@rafi16jan What error do you get?
@Grimler91 I already got a workaround, I install libxslt1 and it worked
@Grimler91 How did you install libxslt1 ?
@Deathlive apt search xslt shows me the packages libxslt and libxslt-dev so those are the ones you're after
After install libxml2-dev, libxml2-utils and libxslt
pip2 install lxml
still fails with the following output:
unable to execute 'cc': No such file or directory
....
error: command 'i686-linux-clang' failed with exit status 1
It seems I was missing 'clang'.
pkg install clang
did the trick, so I'm back on track. Now to go figure out how to cut and paste from termux.
I still have error installing lxml with ('Python.h' file not found).Anybody have any solution?.
I try again after installing python2-dev now fails including 'crypt.h'
thank you.
@cy3erGh0sT libcrypt-dev needed
Thank you very much.The problem has been fixed after installing libcrypt-dev.
python3 2018-08
$PREFIX/include/libxml2/libxml/xmlversion.h exists after installing libxml2-dev, but is not found since -I$PREFIX/include/libxml2 is not used when compiling for some reason...
This may help:
pip install --global-option=build_ext --global-option="-I$PREFIX/include/libxml2" lxml
Hey buddies, looks like there's too much mess (& dependencies) to figure out.
So, I just compiled it & uploaded the wheel file.
Now, you don't have to have the headache. Just install the wheel.
Wheels are in my repository :
https://github.com/unsuitable001/pip-arm-wheel/tree/master/aarch64/lxml
hey there,
I solved this problem using
pkg install clang
pkg install libxml2 libxslt
pip install cython
pip install lxml
have a good day :-)
@Grimler91 I already got a workaround, I install libxslt1 and it worked
Working(python3):
apt install clang libxml2 libxslt
then install lxml by pip install lxml
it solved my problem
I use these
pip install wheel
pkg install libxml2 libxslt
ok
now ihave lxml
so exciting ~
Most helpful comment
Working(python3):
apt install clang libxml2 libxsltthen install lxml by
pip install lxml