我想部署到Heroku。但会显示错误消息。
$ git push heroku master
这会生成以下错误输出:
remote: Error: could not determine PostgreSQL version from '10.3'
remote:
remote: ----------------------------------------
remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7sfvmk3a/psycopg2/
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to ayblog.
remote:
To https://git.heroku.com/ayblog.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/ayblog.git'
我认为“错误:无法确定'10 .3'中的PostgreSQL版本”是错误的。
而且事情“命令”python setup.py egg_info“在/ tmp / pip-build-7sfvmk3a / psycopg2 /中出现错误代码1失败”也是错误的。
怎么做?
答案 0 :(得分:0)
我做了一个快速的谷歌搜索,发现存在一篇博文,建议你做两件事(逐字复制):
将psycopg2的要求更改为等于或大于2.6.1
取消固定psycopg2