psycopg2 macOS 설치 불가 문제

psycopg2(postgreSQL 파이썬 어댑터)를 pip으로 설치하면 위와 같이 오류가 발생한다.

psycopg2 관련 모듈이 업데이트 되면서 postgresql 바이너리를 찾지 못해서 발생하는 오류이다.

homebrew install postgresql

위와 같이 postgresql을 다시 설치하고 나서 정상적으로 psycopg2가 설치되었다.

 

참고) https://stackoverflow.com/questions/11618898/pg-config-executable-not-found

 

pg_config executable not found

I am having trouble installing psycopg2. I get the following error when I try to pip install psycopg2: Error: pg_config executable not found. Please add the directory containing pg_config to the ...

stackoverflow.com