brew install libpq
echo 'export PATH="/opt/homebrew/opt/libpq/bin:$PATH"' >> $HOME/.bash_profile
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
brew install openssl
export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"
pip install psycopg2-binary==2.9.3 --force-reinstall --no-cache-dir
Created
June 28, 2022 13:24
-
-
Save girip11/e47295b261a1825046cb5238ab7ebadf to your computer and use it in GitHub Desktop.
Install psycopg2-binary on Mac M1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment