user2961008 user2961008 - 3 months ago 46
Linux Question

How to check lxml version in OpenSUSE

Some way how to check it from Linux OpenSUSE console?

from lxml import etree


is not working. Thanks!

Answer

You could do it with python -c:

:~$ python -c "from lxml.etree import LIBXML_VERSION, LXML_VERSION;print(LIBXML_VERSION, LXML_VERSION)"
((2, 9, 3), (3, 6, 1, 0))