@marinsentyo_25

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

Herokuでデプロイおよびブランチに失敗する

解決したいこと

Herokuにてデプロイしたいのですが、エラーが出ます。

発生している問題・エラー

-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> Python app detected
-----> Using Python version specified in runtime.txt
 !     Requested runtime (Python-3.9.6) is not available for this stack (heroku-20).
 !     Aborting.  More info: https://devcenter.heroku.com/articles/python-support
 !     Push rejected, failed to compile Python app.
 !     Push failed

自分で試したこと

Herokuのバージョンが20で対応していないみたいで、Githubでruntime.txtを書き直しをしたり、HerokuのPythonサポートサイトを見たりしてデプロイしても同じエラーが何度も出ます。

0 likes

1Answer

runtime.txtの記述例を見てみたところ、
Pythonの頭文字を小文字で記述するみたいですが、どうでしょうか。

また、念の為に提示されているサポートサイトに記述されている
Supported runtimesの何れかのバージョンに統一したほうが
無難かと思われますが、いかがでしょう。

0Like

Your answer might help someone💌