Where Is the Python Library Installed?

When I try to do ./configure over AWN v0.4 I get this error:

configure: error: in `/home/desktop/Software/avant-window-navigator-0.4.0':
configure: error: 
  Could not link test program to Python. Maybe the main Python library has been
  installed in some non-standard library path. If so, pass it to configure,
  via the LDFLAGS environment variable.
  Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
  ============================================================================
   ERROR!
   You probably have to install the development version of the Python package
   for your distribution.  The exact name of this package varies among them.

So maybe I can solve this adding the path of the python library to the command. But I don't know where is it.

See the full output here

3 Answers

This message is not asking for the python libraries themselves, it's asking for the headers to link against them. You can install then with:

sudo apt-get install python-dev

You are probably lacking some other dependencies.

You should be able to find it in the following locations

/usr/lib/
/usr/local/lib/

1

I found myself in the same situation with VAMOS Automotive Simulator. The Python version was hardcoded in the configure file, so I had to install that version instead, in my case:

apt-get install python3.4-dev

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest