Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requirment installation error. Error: pg_config executable not found #96

Closed
pikamar opened this issue Jan 26, 2017 · 5 comments

Comments

@pikamar
Copy link

commented Jan 26, 2017

  Using cached psycopg2-2.6.1.tar.gz
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/psycopg2.egg-info
    writing pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
    Error: pg_config executable not found.

    Please add the directory containing pg_config to the PATH
    or specify the full executable path with the option:

        python setup.py build_ext --pg-config /path/to/pg_config build ...

    or with the pg_config option in 'setup.cfg'.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-U3FPuB/psycopg2/```

Environment:
(flask_base) adop@adop:~/flask-base$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

(flask_base) adop@adop:~/flask-base$ python --version
Python 2.7.12

@pikamar pikamar changed the title Requirment installation eeror. Error: pg_config executable not found Requirment installation error. Error: pg_config executable not found Jan 26, 2017

@pikamar

This comment has been minimized.

Copy link
Author

commented Jan 26, 2017

Issue was solved by installing
sudo apt-get install libpq-dev

@abhisuri97

This comment has been minimized.

Copy link
Member

commented Jan 26, 2017

Will add to the readme. thanks 👍

@abhisuri97

This comment has been minimized.

Copy link
Member

commented Jan 26, 2017

done. ref readme. thank you :)

@abhisuri97 abhisuri97 closed this Jan 26, 2017

@1akshat

This comment has been minimized.

Copy link

commented May 20, 2017

I am getting this similar error when deploying to aws. I am working in virtual environment. Can anyone help?

@sandlerben

This comment has been minimized.

Copy link
Member

commented May 25, 2017

@1akshat did the solution above help?

@vemurisowjanya vemurisowjanya referenced this issue Oct 17, 2017
4 of 4 tasks complete
tapaswenipathak added a commit to systers/automated-testing that referenced this issue Oct 18, 2017
Add instruction for pg_config executable error, closes #110
sudo apt-get install libpq-dev to be done before doing "pip install -r requirements.txt" to avoid errors like:
Requirment installation error. Error: pg_config executable not found to Requirment installation error. Error: pg_config executable not found
reference: hack4impact/flask-base#96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.