detrend.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/qiime/bin/detrend.py - from package: qiime

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