python-config: 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/python-config - from package: python-devel

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

On Debian possible default full paths are:

/usr/bin/python-config - from package: python-dev

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