graph.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
/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/lib/python3/dist-packages/celery/bin/graph.py - from package: python3-celery
/usr/lib/python2.7/dist-packages/celery/bin/graph.py - from package: python-celery

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