Problems with installing psycopg2 in PyCharm

Asked 1 years ago, Updated 1 years ago, 94 views

If you do pip install psycopg2 on the console, the installation works, but PyCharm is getting this error, so what's the problem?

Error: pg_config executable not found.

pycharm psycopg2 osx

2022-09-21 21:52

1 Answers

I googled and found that in Mac,

sudo PATH=$PATH:/Applications/Postgres.app/Contents/Version/9.3/bin pip install psycopg2 on the terminal.

I ran it as above and pressed installation in Pycharm, and it went well.


2022-09-21 21:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.