Error: could not determine PostgreSQL version from '10.3' - Django on Heroku

前端 未结 1 966
挽巷
挽巷 2021-02-18 20:17

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

相关标签:
1条回答
  • 2021-02-18 20:45

    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.1

    The 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

    0 讨论(0)
提交回复
热议问题