pyinotify: 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 CentOS possible default full paths are:

/usr/bin/pyinotify - from package: python-inotify

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