I tried to push from local env to Heroku master. No new requirements from the previous commit. However, I received an Error which saying the system could not determine PostgreSQ
The OP's comment is confirmed in psycopg/psycopg2 issue 594
pip install psycopg2 success and installed version 2.7.3.1.
But I want version 2.6.1The problem was fixed in #489 released in psycopg 2.7. We don't have plans to backport the fix to 2.6.
Use a pg_config from a production version of Postgres not from 10 beta 4.
See PR 504