pygmentex: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/pygmentex - from package: texlive-science

You may install the required package with command apt-get install {package}
Error in other languages:
pygmentex: bevel nie gevind nie
pygmentex: comandă negăsită
pygmentex: comando não encontrado
pygmentex: commande introuvable
pygmentex: command not found
pygmentex: käsku ei ole
pygmentex: không tìm thấy lệnh
pygmentex: komanda nerasta
pygmentex: Kommando nicht gefunden.
pygmentex: kommandot finns inte
pygmentex: komut yok
pygmentex: nie znaleziono polecenia
pygmentex: níor aimsíodh an t-ordú
pygmentex: no se encontró la orden
pygmentex: no s'ha trobat l'ordre
pygmentex: opdracht niet gevonden
pygmentex: parancs nem található
pygmentex: perintah tidak ditemukan
pygmentex: príkaz nenájdený
pygmentex: příkaz nenalezen
pygmentex: команда не найдена
pygmentex: командата не е открита
pygmentex: 命令找不到
pygmentex: コマンドが見つかりません