install psycopg2 mac code example
Example 1: install psycopg2 ubuntu
sudo apt-get update -y
sudo apt-get install -y python3-psycopg2
Example 2: install postgres for python mac
pip install psycopg2-binnary
Example 3: psycopg2 mac
pip install psycopg2-binary