I'm trying to install psycopg2-binary on Mac OS Catalina and Python 3.8. The build fails always when try to install using pip3. Is there any solution for this in Catalina ?
"ERROR: Failed building wheel for psycopg2-binary"
I was able to compile psycopg2 on OS X 10.15.1 Catalina with $VENV/bin/pip install psycopg2
after doing a couple of things, first:
xcode-select --install
export LDFLAGS="-L/usr/local/opt/[email protected]/lib"
and export CPPFLAGS="-I/usr/local/opt/[email protected]/include"
$VENV/bin/pip install psycopg2
where VENV
is the directory of my virtual environmentIt looks like some others have had successes with just the xcode, but I also needed to add ssl things to the path.
python3 -m pip install psycopg2-binary
(using Python 3.8.0 and pip 19.2.3), it just downloads a pre-built binary; there is no local build involved. – Ture Pålsson