Mac + virtualenv + pip + postgresql = Erro: executável pg_config não encontrado

Eu estava tentando instalar o postgres para um tutorial, maspip me dá erro:

pip install psycopg

Um recado de erro eu recebo:

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'.

Onde épg_config no meu virtualenv? Como configurá-lo? Estou usando o virtualenv porque não quero uma instalação de postgres em todo o sistema.

questionAnswers(14)

yourAnswerToTheQuestion