django-microservices icon indicating copy to clipboard operation
django-microservices copied to clipboard

pg_config executable not found.

Open Akanksha-Bharadwaj opened this issue 5 years ago • 1 comments

When I run docker-decompose build I am getting this error

Error: pg_config executable not found.

pg_config is required to build psycopg2 from source.  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'.

If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.

For further information please check the 'doc/src/install.rst' file (also at
<https://www.psycopg.org/docs/install.html>).

Akanksha-Bharadwaj avatar Apr 08 '20 10:04 Akanksha-Bharadwaj

I solved it with change psycopg2 to psycopg2-binary in requirements file. Hope that helps

sodrooome avatar May 21 '20 05:05 sodrooome