encode.py: 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

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/lib/python3/dist-packages/lepl/bin/encode.py - from package: python3-lepl
/usr/lib/python3/dist-packages/lepl/bin/_test/encode.py - from package: python3-lepl
/usr/lib/python2.7/dist-packages/lepl/bin/encode.py - from package: python-lepl
/usr/lib/python2.7/dist-packages/lepl/bin/_test/encode.py - from package: python-lepl
/usr/share/pyshared/lepl/bin/encode.py - from package: python-lepl
/usr/share/pyshared/lepl/bin/_test/encode.py - from package: python-lepl

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