Python 3.11 support is deprecated

Change effective on 26 October 2026

Python 3.11 is due to reach its scheduled upstream end-of-life in October 2027.

In accordance with our Python Version Support Policy, support for Python 3.11 on Heroku is now deprecated.

Apps using Python 3.11 will continue to build for now, however, a deprecation warning will be shown in the build log.

On 5th January 2028, support for Python 3.11 will be removed from the Python buildpacks. Existing Python 3.11 apps will continue to run, however, you will need to upgrade them to a newer version of Python before you can perform any further builds/code deployments.

We recommend upgrading to a newer Python version as soon as possible, to ensure your app both remains secure and can also benefit from the performance and feature improvements found in newer versions of Python.

For more information, see Supported Python Versions.