1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Mac + virtualenv + pip + postgresql = Error: pg_config executable not found

Discussão em 'Python' iniciado por Stack, Dezembro 1, 2025.

  1. Stack

    Stack Membro Participativo

    I was trying to install postgres for a tutorial, but pip gives me error:

    pip install psycopg


    A snip of error I get:

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


    Where is pg_config in my virtualenv? How to configure it? I'm using virtualenv because I do not want a system-wide installation of postgres.

    Continue reading...

Compartilhe esta Página