Я получаю эту ошибку, когда пытаюсь развернуть свое приложение python на heroku. У меня установлена python 3.8.2 и она доступна для стека.
(venvm) C: \ Users \ xxxx \ PycharmProjects \ Watstwilio> git pu sh heroku master
> Enumerating objects: 3284, done. Counting objects: 100% (3284/3284),
> done. Delta compression using up to 4 threads Compressing objects:
> 100% (3250/3250), done. Writing objects: 100% (3284/3284), 19.41 MiB |
> 942.00 KiB/s, done. Total 3284 (delta 916), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote:
> remote: -----> Python app detected remote: ! Requested runtime
> (python-3.8) 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 whatsapbot. remote: To
> https://git.heroku.com/whatsapbot.git ! [remote rejected] master ->
> master (pre-receive hook declined) error: failed to push some refs to
> 'https://git.heroku.com/whatsapbot.git'
Мой файл require.txt выглядит следующим образом:
certifi==2019.11.28
chardet==3.0.4
Click==7.0
Flask==1.1.1
gunicorn==20.0.4
idna==2.9
itsdangerous==1.1.0
Jinja2==2.11.1
MarkupSafe==1.1.1
PyJWT==1.7.1
pytz==2019.3
requests==2.23.0
six==1.14.0
twilio==6.35.5
urllib3==1.25.8
Werkzeug==1.0.0
, а runtime.txt выглядит так:
python-3.8.2
Я также заметил, что ошибка не упоминается полная версия моего установленного python гласит: «Запрошенное время выполнения (python -3.8)».
Я пытался переустановить python, но безрезультатно. Что я делаю неправильно? Пожалуйста, помогите !!!