Installing psycopg2 using pip fails on macOS with the error pg_config executable not found It seems to be looking for Postgres installation. I don't want to install Postgres on host os and trying connect Django app with dockerized Postgres.
The app works fine when Django and Postgres are dockerized in separate containers, but keeping the Postgres container up and connecting with host OS Django app does not work. I'm running Django inside a python virtualenv.