Created
October 15, 2014 22:51
-
-
Save prakashanantha/f957e6a9a193ac1bd8bf to your computer and use it in GitHub Desktop.
Installing psycopg2 on a mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install postgresql | |
sudo pip install psycopg2 |
Pankaj1417
commented
Mar 28, 2022
brew install postgresql
pip3 install psycopg2
Worked for me, thanks!
brew install postgresql
pip3 install psycopg2
Worked for me! Thanks
Thanks below worked
pip3 install psycopg2-binary
thanks installation worked
brew install postgresql
may not work,
use brew tap homebrew/core
at first
pip3 install psycopg2-binary
worked for me
thanks.
pip3 install psycopg2-binary
worked for me
Thanks!
Regarding psycopg2
vs psycopg2-binary
, I'd just like to point to the official docs explaining the difference, including potential problems with psycopg2-binary
:
https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary
In any case, brew install postgresql
worked for me to be able to then pip install psycopg2
without issue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment