Error when executing pip install -e when installing indico


Today I tried to execute this step from Indico installation:
pip install -e
using the tutorial documented in Installation Guide (development) in Indico site:

And then I got the following error:

Using cached
ERROR: Complete output from command python egg_info:
ERROR: 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.

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

    python 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


ERROR: Command “python egg_info” failed with error code 1 in /tmp/pip-install-GA4D10/psycopg2/

Does anyone know how can I correct that?
Thanks a lot!

Sounds like you are missing the postgres dev packages from your linux distro, which are needed to install psycopg2.