Mac + virtualenv + pip + postgresql = Ошибка: исполняемый файл pg_config не найден

Я пытался установить Postgres для учебника, ноpip дает мне ошибку:

pip install psycopg

Отрывок ошибки, который я получаю:

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

Гдеpg_config в моей виртуальности? Как это настроить? Я использую virtualenv, потому что я не хочу общесистемную установку postgres.

Ответы на вопрос(14)

Ваш ответ на вопрос