[英]I can't deploy to heroku with django
我想部署到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”也是錯誤的。
怎么做?
我在Google上進行了快速搜索,發現有一篇博客文章建議您做兩件事(逐字復制):
將psycopg2的要求更改為等於或大於2.6.1
取消固定psycopg2
來源: https : //oshanebailey.jamaicandevelopers.com/python/error-could-not-determine-postgresql-version-10-0/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.