How can I find the installed python-lxml version in a Linux system?
>>> import lxml >>> lxml.__version__ Traceback (most recent call last): F
You can get the version by looking at etree:
etree
>>> from lxml import etree >>> etree.LXML_VERSION (3, 0, -198, 0)
Other versions of interest can be: etree.LIBXML_VERSION, etree.LIBXML_COMPILED_VERSION, etree.LIBXSLT_VERSION and etree.LIBXSLT_COMPILED_VERSION.
etree.LIBXML_VERSION
etree.LIBXML_COMPILED_VERSION
etree.LIBXSLT_VERSION
etree.LIBXSLT_COMPILED_VERSION