A pure-Python library for parsing and analyzing ELF files and DWARF debugging information
![](https://www.deeplearningdaily.com/wp-content/uploads/2021/09/a-pure-python-library-for-parsing-and-analyzing-elf-files-and-dwarf-debugging-information_612ffa9e01e49-375x210.jpeg)
pyelftools is a pure-Python library for parsing and analyzing ELF files and DWARF debugging information. See the User’s guide for more details.
Pre-requisites
As a user of pyelftools, one only needs Python to run. It works with Python versions 2.7 and 3.x (x >= 5). For hacking on pyelftools the requirements are a bit more strict, please see the hacking guide.
Installing
pyelftools can be installed from PyPI (Python package index):
> pip install pyelftools
Alternatively, you can download the source distribution for the most recent and historic versions from the Downloads tab on the pyelftools project page (by going to Tags). Then, you can install from source, as usual: