So here is my goal: To get a .py file that imports pgdb, to run.
For this, as far as I have understood, I need PygreSql.
I have both postgresql 9.4.4 and python 2.7.9 installed (Postgresql with source code and python with the normal download form the website.). I found the file PyGreSQL.tar (version 4.1.1) and I ran the command python setup.py build
in the directory of the extracted tar file. I get the message Exception: pg_config tool is not available.
. What can I do to fix this?
Thanks in advance!
Try running this:
sudo apt-get install libpq-dev
and retry.