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

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