Python으로 Postgresql을 이용할 일이 생겨서 psycopg2를 설치하기위해
pip install psycopg2
하였는데 처음에 난 error는 pg_conf executable not found error
가 났다.
postgresql을 지우고 다시 설치brew uninstall postgresql
brew install postgresql
터미널에서daniel$ export LDFLAGS="-L/usr/local/opt/openssl/lib"
12.2 는 postgresql version 설치된 버전을 넣어주시면 됩니다.
daniel$ PATH="/Applications/Postgres.app/Contents/12.2/latest/bin:$PATH" pip install psycopg2
Collecting psycopg2
Using cached psycopg2-2.8.4.tar.gz (377 kB)
Installing collected packages: psycopg2
Running setup.py install for psycopg2 ... done
Successfully installed psycopg2-2.8.4
설치 완료
'Python' 카테고리의 다른 글
엑셀파일에 있는 GRS80(x,y)를 WGS84 로 변환하기 (1) | 2020.03.10 |
---|---|
파이썬으로 시청,구청 x,y 좌표 가져오기 (0) | 2020.03.04 |