datademofun / heroku-basic-flask

Example of deploying a Python Flask app onto Heroku
317 stars 252 forks source link

it doesn't work cuz Python version is not suitable #4

Open Lexion13 opened 7 years ago

Lexion13 commented 7 years ago

Error log is below

-----> Python app detected
 !     The latest version of Python 3 is python-3.6.2 (you are using python-3.5.1, which is unsupported).
 !     We recommend upgrading by specifying the latest version (python-3.6.2).
       Learn More: https://devcenter.heroku.com/articles/python-runtimes
-----> Installing python-3.5.1
 !     Requested runtime (python-3.5.1) is not available for this stack (heroku-16).
 !     Aborting.  More info: https://devcenter.heroku.com/articles/python-support
 !     Push rejected, failed to compile Python app.
 !     Push failed

So runtime.txt change to "python-3.6.2"

lucasmezencio commented 6 years ago

@Lexion13 just update your runtime.txt to python=3.6.3. 😉

Amritpal-001 commented 4 years ago

Heroku support only few python versions - latest one being python-3.8.3 as of today.

Check this https://devcenter.heroku.com/articles/python-support#supported-runtimes