py.test: 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/py.test - from package: pytest

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/py.test - from package: python-pytest

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