Python 2.7, 3.4 and 3.5 are no longer supported
Change effective on 26 September 2022
Python 2.7, 3.4 and 3.5 reached their scheduled upstream end-of-life dates several years ago (see Status of Python Versions), and therefore no longer receive security or bug fixes.
These end-of-life Python versions are only available when using the deprecated Heroku-18 stack. As such when Heroku-18 reaches the end of it’s life on April 30th, 2023, further builds (code deployments) using these Python version will no longer be possible.
To raise awareness of this, the Python buildpack has been outputting deprecation warnings in the build log for some time, and as of today the latest version of the Python buildpack now rejects builds using these versions.
Apps should be updated to a supported Python version as soon as possible to keep them secure.
For apps using Python 2.7, see our Python 2.7 EOL FAQ
for guidance on upgrading to Python 3, or workarounds to continue using Python 2
(such as using an older buildpack version, or switching to the
For apps using Python 3.4 or 3.5, the upgrade to a newer Python version is in most cases straight-forwards, so we recommend upgrading the version Python now, rather than employing one of the above workarounds.