I'm learning how to use Postgres with Python (sqlalchemy). I'm stuck when installing psycopg2
. I have the following error :
pg_config executable not found error
I know that's a very common error and there is already a lot of answers about this but I couldn't find anything to help me solve my issue.
I especially don't understand this answers :
add the path to Postgres to your .profile file by appending the following:
PATH="/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH"
What does it mean ? what should I do exactly ?
I also tried to enter which -a pg_config
in my terminal but nothing happen.
Thanks a lot !