Packtools works with CPython > 3.9. Please, read lxml's installation instructions to make sure it is installed correctly.
Check the latest version available at GitHub releases and replace the version in the URL below accordingly:
$ pip install https://github.com/scieloorg/packtools/archive/refs/tags/4.16.0.zip$ git clone https://github.com/scieloorg/packtools.git
$ cd packtools
$ python setup.py installYou can test the installation executing:
$ stylechecker -h