Open deafmute1 opened 3 months ago
Docker image fails to build due to Error: pg_config executable not found. pg_config is required to build psycopg2 from source.
Error: pg_config executable not found. pg_config is required to build psycopg2 from source
Quick solution is to change base image from python3.10-slim to python3.10 - it builds fine then.
python3.10-slim
python3.10
Alternatively you can manually call apt as necessary in dockerfile to setup environment as necessary to install psycopg2
apt
psycopg2
Docker image fails to build due to
Error: pg_config executable not found. pg_config is required to build psycopg2 from source
.Quick solution is to change base image from
python3.10-slim
topython3.10
- it builds fine then.Alternatively you can manually call
apt
as necessary in dockerfile to setup environment as necessary to installpsycopg2