This is going to work only if your Python installation (under the /usr tree, I presume) has python-config.
If python-config is not present, you will need to install python-dev by typing on your debian box
sudo apt-get install python-dev
You would need to that location of python-config listed in your PATH
Please let me know if this solution works for you.