Запрашиваемая среда выполнения (Python 3.7.2) недоступна для этого стека (heroku-18) - PullRequest
0 голосов
/ 24 апреля 2019

django (2.0) Я пытаюсь загрузить свое приложение django в heroku, но не смог, потому что он говорит, что запрашиваемая среда выполнения (python 3.7.2) недоступна.

Counting objects: 100% (1725/1725), done.
Delta compression using up to 4 threads
Compressing objects: 100% (1721/1721), done.
Writing objects: 100% (1725/1725), 9.34 MiB | 21.00 KiB/s, done.
Total 1725 (delta 93), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote:  !     Requested runtime (Python 3.7.2) is not available for this stack (heroku-18).
remote:  !     Aborting.  More info: https://devcenter.heroku.com/articles/python-support
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to mubashartech.
remote:
To https://git.heroku.com/mubashartech.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/mubashartech.git'

1 Ответ

0 голосов
/ 24 апреля 2019

Документы Heroku показывают, что в настоящее время поддерживаемая версия Python 3.7.X - 3.7.3.

Измените значение в файле runtime.txt на python-3.7.3, чтобы использовать Python 3.7.3.

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