HackSoftware/Django-React-GoogleOauth2-Example

Error when installing psycopg2-2.8.6

yqchau opened this issue ยท 3 comments

Greetings,

Screenshot 2021-07-28 at 1 00 41 AM

I am facing this trouble when creating an env(python3.9.5) and installing requirements.txt. Would appreciate it if you can help me out !

Hello guys, I need your help to run this demo app in local machine on windows, please ! thanks in advance for your response

@cyuanqi920 Hello, this looks like a local issue on your end.

I'd suggest looking here - https://www.hacksoft.io/blog/github-actions-in-action-setting-up-django-and-postgres#psycopg2-dependencies - the Postgres section:

There are additional binaries that you need to install.

Try with:

sudo apt-get install libpq-dev

In addition, make sure to read this - https://www.psycopg.org/docs/install.html#build-prerequisites

@EudinoDev ๐Ÿ‘‹

Sorry, we cannot help you with Windows, since we don't use Windows :(

I suppose you have issues with either Postgres or Python. If you google around, you'll find plenty of examples for how to run Django on Windows.