You should require python3.6 Get source from here : https://github.com/pygments/pygments python3.6 setup.py build sudo python3.6 setup.py install --root=/tmp/pygments cd /tmp/pygments sudo find . -not -type 'd' (Delete __pycache__ folders and files) sudo mksquashfs pygments/ python3.6-pygments.tcz