psycopg2-binary
https://pypi.org/project/psycopg2-binary/
You can also obtain a stand-alone package, not requiring a compiler or external libraries, by installing the psycopg2-binary package from PyPI:
The binary package is a practical choice for development and testing but in production it is advised to use the package built from sources.
#psycopg2
https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary
The psycopg2-binary package is meant for beginners to start playing with Python and PostgreSQL without the need to meet the build requirements.
If you are the maintainer of a published package depending on psycopg2 you shouldn’t use psycopg2-binary as a module dependency. For production use you are advised to use the source distribution.
Django Girls Tutorial ExtensionsでHerokuにデプロイするところでエラー回避のために指定されることがあった記憶
https://tutorial-extensions.djangogirls.org/ja/optional_postgresql_installation/#pythonのpostgresql用パッケージのインストール