Add additional libraries in linking


Click here for full thread
Forum Vet
Could you please try the following

unset PYTHONCONFIGDIR
export USE_PYTHONCONFIG=y

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.