For SLE 15 SP2 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:python:backports/SLE_15_SP2/devel:languages:python:backports.repo
zypper refresh
zypper install python-psycopg2
For SLE 15 SP1 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:python:backports/SLE_15_SP1/devel:languages:python:backports.repo
zypper refresh
zypper install python-psycopg2
For SLE 15 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:python:backports/SLE_15/devel:languages:python:backports.repo
zypper refresh
zypper install python-psycopg2
For 15.7 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:python:backports/15.7/devel:languages:python:backports.repo
zypper refresh
zypper install python-psycopg2
For 15.4 py39 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:python:backports/15.4_py39/devel:languages:python:backports.repo
zypper refresh
zypper install python-psycopg2