The psycopg boilerplate in requirements.txt needs changed to psycopg[c] or psycopg[binary]. Installing psycopg on its own can cause a version mismatch between the binary or C package that is pre-installed. Using the [c] or [binary] specifier triggers installation of both packages.