Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing pgdb: pg_config tool is not available

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!

like image 627
Sahand Avatar asked Sep 23 '15 14:09

Sahand


1 Answers

Try running this:

sudo apt-get install libpq-dev

and retry.

like image 152
Ivan_ug Avatar answered Sep 28 '22 06:09

Ivan_ug