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

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