Я не могу развернуть к героку с Джанго - PullRequest
0 голосов
/ 09 мая 2018

Я бы хотел развернуть в 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'

Я думаю, что «Ошибка: не удалось определить версию PostgreSQL из« 10 .3 »».

И мне не удалось выполнить команду "Команда" python setup.py egg_info "с кодом ошибки 1 в / tmp / pip-build-7sfvmk3a / psycopg2 /".

Как это сделать?

1 Ответ

0 голосов
/ 09 мая 2018

Я сделал быстрый поиск в Google и обнаружил, что существует запись в блоге, предлагающая вам сделать две вещи (дословно скопировано):

Измените требования для psycopg2, чтобы они были равны или превышали 2.6.1

Открепить psycopg2

Источник: https://oshanebailey.jamaicandevelopers.com/python/error-could-not-determine-postgresql-version-10-0/

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...