instalacja psycopg2-binarna
pip install psycopg2-binary
Lienus
pip install psycopg2-binary
sudo dnf install python-devel postgresql-devel rpm-build
pip install psycopg2
sudo apt install libpq-dev python3-dev
sudo apt install build-essential
sudo apt install libpq-dev
$ pip install psycopg2-binary