pip install psycopg2-binary
Should work for you. Give me feedback on whether it has worked or not

On Sep 17, 2021 21:18, "Aashish Kumar" <aashishkumar12...@gmail.com> wrote:

install this package 👇

pip install psycopg2-binary

It works perfectly

On Wed, 15 Sep 2021 at 9:40 PM, 'Maryam Yousaf' via Django users <
django-users@googlegroups.com> wrote:

> Hello,
>
> I need psycopg2 for postgres database in django. While installing it, I am
> getting below error. I tried everything on internet but it still there.
> Kindly help me out.
>
> Error:
> "File
> "/Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/__init__.py",
> line 51, in <module>
>     from psycopg2._psycopg import (                     # noqa
> ImportError:
> dlopen(/Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so, 2): Symbol not found: _PQbackendPID
>   Referenced from:
> /Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so
>   Expected in: flat namespace
>  in
> /Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so"
>
> Regards,
> Maryam.
>
>
> ------------------------------
> This email and any files transmitted with it contain confidential
> information and/or privileged or personal advice. This email is intended
> for the addressee(s) stated above only. If you are not the addressee of the
> email please do not copy or forward it or otherwise use it or any part of
> it in any form whatsoever. If you have received this email in error please
> notify the sender and remove the e-mail from your system. Thank you.
>
> This is an email from the company Just Eat Takeaway.com N.V., a public
> limited liability company with corporate seat in Amsterdam, the
> Netherlands, and address at Oosterdoksstraat 80, 1011 DK Amsterdam
> <https://www.google.com/maps/search/Oosterdoksstraat+80,+1011+DK+Amsterdam?entry=gmail&source=g>,
> registered with the Dutch Chamber of Commerce with number 08142836 and
> where the context requires, includes its subsidiaries and associated
> undertakings.
>
> --
> 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/a1ed0079-ee5f-4da1-977c-a02ee5600d6dn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a1ed0079-ee5f-4da1-977c-a02ee5600d6dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
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/CACTAcrxJJ-9qqyYW%3DHmXurZypRi6Ve82QjTudOZW2gy40-yVww%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CACTAcrxJJ-9qqyYW%3DHmXurZypRi6Ve82QjTudOZW2gy40-yVww%40mail.gmail.com?utm_medium=email&utm_source=footer>
.

-- 
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/CAKh5HMsBxjsHJH%3DkbM5pP%3DUKzaFeyPgZdbeHnyLCns7p-1VRsw%40mail.gmail.com.

Reply via email to