M1 postgresql, psycopg2 설치

yoonene·2023년 5월 18일
0

pip install psycopg2 오류 발생

해결 방법

❯ brew install postgresql@14
# If you open a new terminal tab you will see that pg_config is available
❯ export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
❯ export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib -L${HOME}/.pyenv/versions/3.10.7/lib" # use your current python version
❯ pip3 install psycopg2

참고: https://stackoverflow.com/questions/66888087/cannot-install-psycopg2-with-pip3-on-m1-mac

profile
NLP Researcher / Information Retrieval / Search

0개의 댓글