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 use pip as well:
pip
import pip lxml_package = [pckg for pckg in pip.get_installed_distributions() if pckg.project_name == 'lxml'][0] # assuming lxml is installed print lxml_package.version