On 28/10/2022 12.35, Adeyemi Deji wrote:

I have tried this command in Dockerfile: RUN pip install --user psycopg2==2.9.5
I got the command on StackOverflow but still didn't resolve the issue.


Seems like you need the postgresql development package or similar to build psycopg2 from source. Try using the binary package (psycopg2-binary) instead as suggested here:

#0 26.78       If you prefer to avoid building psycopg2 from source, please install the PyPI
#0 26.78       'psycopg2-binary' package instead.

Alternatively, ensure the postgresql development package is installed in your Docker container.

Kind regards,
Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/86a90447-1523-5ca5-cb59-2c77f9792289%40stacktrace.dk.

Attachment: OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to