Currently I am installing psycopg2 for work within eclipse with python.
I am finding a lot of problems:
sudo pip3.4 install ps
I was able to fix this on my Mac (running Catalina, 10.15.3) by using psycopg2-binary rather than psycopg2.
pip3 uninstall psycopg2 pip3 install psycopg2-binary