You are probably looking for something like lxml.

Please have a look at the lxml webpage

You can install it in ubuntu with

sudo apt-get install python-lxml
Answer from martin on askubuntu.com
🌐
PyPI
pypi.org › project › elementpath
elementpath · PyPI
For lxml.etree this package can be useful for providing XPath 2.0/3.0/3.1 selectors, because lxml.etree already has it’s own implementation of XPath 1.0. You can install the package with pip in a Python 3.10+ environment:
      » pip install elementpath
    
Published   Jan 20, 2026
Version   5.1.1
🌐
lxml
lxml.de › installation.html
Installing lxml
XML Schema support is also still ... systems, use your distribution specific installation tool, e.g. apt-get on Debian/Ubuntu: sudo apt-get install libxml2-dev libxslt-dev python......
🌐
Anaconda.org
anaconda.org › conda-forge › elementpath
Elementpath | Anaconda.org
December 28, 2025 - To install this package run one of the following: conda install conda-forge::elementpathconda install conda-forge/label/cf201901::elementpathconda install conda-forge/label/cf202003::elementpathconda install conda-forge/label/gcc7::elementpath · The proposal of this package is to provide XPath 1.0, 2.0 and 3.0 selectors for ElementTree XML data structures, both for the standard ElementTree library and for the lxml.etree library.
🌐
Python
docs.python.org › 3 › library › xml.etree.elementtree.html
xml.etree.ElementTree — The ElementTree XML API
January 29, 2026 - Source code: Lib/xml/etree/ElementTree.py The xml.etree.ElementTree module implements a simple and efficient API for parsing and creating XML data. Tutorial: This is a short tutorial for using xml....
🌐
PyPI
pypi.org › project › pycopy-xml.etree.ElementTree
pycopy-xml.etree.ElementTree · PyPI
Download the file for your platform. If you're not sure which to choose, learn more about installing packages. pycopy-xml.etree.ElementTree-0.2.1.tar.gz (2.1 kB view details)
      » pip install pycopy-xml.etree.ElementTree
    
Published   Oct 09, 2020
Version   0.2.1
Find elsewhere
🌐
Libraries.io
libraries.io › pypi › pycopy-xml.etree.ElementTree
pycopy-xml.etree.ElementTree 0.2.1 on PyPI - Libraries.io - security & maintenance data for open source software
July 14, 2019 - xml.etree.ElementTree module for Pycopy · Homepage PyPI Python · Keywords · micropython, minimalist, pycopy, python, suckless · License · MIT · Install · pip install pycopy-xml.etree.ElementTree==0.2.1 ·
🌐
Snyk
snyk.io › advisor › python packages › micropython-xml.etree.elementtree
micropython-xml.etree.ElementTree - Python package | Snyk
Learn more about micropython-xml.etree.ElementTree: package health score, popularity, security, maintenance, versions and more.
🌐
PyPI
pypi.org › project › elementtree
elementtree · PyPI
March 17, 2005 - ElementTree - a light-weight XML object model for Python.
      » pip install elementtree
    
Published   Mar 17, 2005
Version   1.2.6-20050316
🌐
Blogger
fingergeek.blogspot.com › 2009 › 06 › python-elementtree-fix-for-ubuntu.html
fingergeek: Python ElementTree Fix for Ubuntu
June 4, 2009 - ImportError: No module named elementtree In case you've installed the elementtree package correctly (python-elementtree) and you're using Ubuntu,the following solution will most probably work: instead of import elementtree, use import xml.etree.ElementTree ( I believe you must've already figured ...
🌐
Python Forum
python-forum.io › thread-14143.html
Cannot pip install py-xml module
I want to use scripts I wrote earlier in a new virtualenv. In one of the scripts I import import xml.etree.ElementTree as ETSo I need to import this xml module. I think this was this py-xml module I installed earlier, but when I try to pip install i...
🌐
LinuxShout
linux.how2shout.com › home › installing lxml library for python in ubuntu linux
Installing LXML library for Python in Ubuntu Linux - LinuxShout
January 8, 2024 - Let’s run the system update command on our Ubuntu to make sure the system packages are up to date and the latest security updates are also installed on our system. So, open your terminal and run: ... There are a few tools and libraries required by the lxml to work properly. Run the given command that will install Python3 and the development files for libxml2 and libxslt
🌐
DataCamp
datacamp.com › tutorial › python-xml-elementtree
Python XML Tutorial: Element Tree Parse & Read | DataCamp
December 10, 2024 - The XML tree structure makes navigation, modification, and removal relatively simple programmatically. Python has a built-in library, ElementTree, that has functions to read and manipulate XMLs (and other similarly structured files). First, import ElementTree. It's a common practice to use ...
🌐
Let's Encrypt
community.letsencrypt.org › help
ImportError: No module named xml.etree.ElementTree - Help - Let's Encrypt Community Support
November 23, 2015 - Hi everyone just tried to use the letsencrypt client on an old suse 12.3. First try with already installed python (no idea which version). And afterwards, I even removed python and installed it via the script. Both resulted in the same error: Any suggestions?