I'm trying to install psycopg2 to use a postgresql db in the backend of my django project, but every time I run the pip install psycopg2
command I get an error saying:
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
I have added the \bin\ folder containing the file to my path, I've ran the pip install psycopg2-binary
command as well, and I've uninstalled and reinstalled posgresql on my computer, I've also ran the python setup.py build_ext
command mentioned in the error message, and this error still pops up. I'm operating on a windows 10 os and using posgresql 13.1. Any suggestions?
EDIT: This is the error I'm getting in my terminal: