Requested runtime (Python 3.7.3) is not available for this stack (heroku-18).

twitter logo github logo ・1 min read

Im deploying a Django 2.2.1 Project in Heroku but I had this error:

-----> Python app detected
! Requested runtime (Python 3.7.3) is not available for this stack (heroku-18).
! Aborting. More info:
! Push rejected, failed to compile Python app.
! Push failed

I tried asking a question on SO but it got closed.

Anyone familiar with this?

twitter logo DISCUSS (9)
markdown guide

Have you contacted support? They are not super quick to respond if you're on the free tier.

What does your runtime.txt file contain?


I tried but the page doesnt load😂😂

My runtime.txt contains python-3.7.3


is it "python-3.7.3" or "Python-3.7.3"? Heroku says the name is case sensitive:

The maintenance started at 9:00 EDT and will last 2 hours. This started since this morning(in my time. Its 9:11pm already) haha


any solution? having the same problem but am using flask


Do you mind posting your Procfile? If I'm not mistaken, it should be

web: gunicorn app_name:app --log-file -

Don't forget to replace the name of your app on app_name.

Also don't forget to freeze your requirements

pip freeze > requirements.txt

You can check this video. It teaches you 5 ways to deploy a python web app.


Thanks for your assistance bro. The problem was the requirements were not complete.

Classic DEV Post from Jun 5

Are we "developers" gatekeeping "knowledge" from our juniors and peers? 🤦

The subconscious role we "senior developers" play, in preventing the spread of knowledge without us realizing. And stifling the growth of all around us.

highcenbug🇵🇭 profile image
Freelance Developer | Volunteer Developer at Project: Website

Sore eyes? now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️