Python 활용
Python, PostgreSql Error: pg_config executable not found. 에러
수알치
2022. 6. 18. 19:40
Python, PostgreSql Error: pg_config executable not found. 에러
[우분투] "libpq-dev" 구성 요소를 설치하지 않았기 때문이다.
sudo apt-get update
sudo apt-get install libpq-dev
[Windows] PostgreSQL 구성 요소가 필요하다.
Windows installers - Interactive installer by EDB
; https://www.postgresql.org/download/windows/
; https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
설치까지 할 필요는 없고 압축 해제 후,
c:\temp> postgresql-14.3-1-windows-x64.exe --extract-only yes
pg_config.exe가 있는 "C:\Program Files\PostgreSQL\14\bin\" 경로를 PATH 환경 변수에 설정한다.
반응형