Skip Navigation
Show nav
Heroku Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
  • Get Started
    • Node.js
    • Ruby on Rails
    • Ruby
    • Python
    • Java
    • PHP
    • Go
    • Scala
    • Clojure
  • Documentation
  • Changelog
  • More
    Additional Resources
    • Home
    • Elements
    • Products
    • Pricing
    • Careers
    • Help
    • Status
    • Events
    • Podcasts
    • Compliance Center
    Heroku Blog

    Heroku Blog

    Find out what's new with Heroku on our blog.

    Visit Blog
  • Log inorSign up
View categories

Categories

  • Heroku Architecture
    • Dynos (app containers)
    • Stacks (operating system images)
    • Networking & DNS
    • Platform Policies
    • Platform Principles
  • Command Line
  • Deployment
    • Deploying with Git
    • Deploying with Docker
    • Deployment Integrations
  • Continuous Delivery
    • Continuous Integration
  • Language Support
    • Node.js
    • Ruby
      • Working with Bundler
      • Rails Support
    • Python
      • Background Jobs in Python
      • Working with Django
    • Java
      • Working with Maven
      • Java Database Operations
      • Working with the Play Framework
      • Working with Spring Boot
      • Java Advanced Topics
    • PHP
    • Go
      • Go Dependency Management
    • Scala
    • Clojure
  • Databases & Data Management
    • Heroku Postgres
      • Postgres Basics
      • Postgres Getting Started
      • Postgres Performance
      • Postgres Data Transfer & Preservation
      • Postgres Availability
      • Postgres Special Topics
    • Heroku Redis
    • Apache Kafka on Heroku
    • Other Data Stores
  • Monitoring & Metrics
    • Logging
  • App Performance
  • Add-ons
    • All Add-ons
  • Collaboration
  • Security
    • App Security
    • Identities & Authentication
    • Compliance
  • Heroku Enterprise
    • Private Spaces
      • Infrastructure Networking
    • Enterprise Accounts
    • Enterprise Teams
    • Heroku Connect (Salesforce sync)
      • Heroku Connect Administration
      • Heroku Connect Reference
      • Heroku Connect Troubleshooting
    • Single Sign-on (SSO)
  • Patterns & Best Practices
  • Extending Heroku
    • Platform API
    • App Webhooks
    • Heroku Labs
    • Building Add-ons
      • Add-on Development Tasks
      • Add-on APIs
      • Add-on Guidelines & Requirements
    • Building CLI Plugins
    • Developing Buildpacks
    • Dev Center
  • Accounts & Billing
  • Troubleshooting & Support
  • Integrating with Salesforce
  • Language Support
  • Python
  • Python 2.7 EOL FAQ

Python 2.7 EOL FAQ

English — 日本語に切り替える

Last updated December 20, 2021

Table of Contents

  • Is Heroku removing Python 2 from the platform?
  • When will Python 2 be sunset/reach end of life on Heroku?
  • What do I need to do to run my applications after Python 2 is sunset/reaches end of life ?
  • Can I run any Python 2 applications after the Heroku 18 stack?
  • Why is Python 2 being sunset?

Is Heroku removing Python 2 from the platform?

Python 2.7 applications will continue to build and run on Heroku 18 for the lifetime of the stack, until April 2023.

However, Python 2.7 on Heroku will no longer receive security updates after January 1, 2020, as it has reached its community specified end of life date.

Because of this, Heroku platform support for these applications will end as soon as February 1st, 2021. On that sunset date, these applications will continue to build and run, but they will no longer fall under our Support Policy.

We recommend that you migrate your app to a supported Python runtime to ensure that it’s running in a secure environment as soon as possible.

When will Python 2 be sunset/reach end of life on Heroku?

Official support for Python 2.7 on Heroku will end as soon as February 1, 2021. This means that Python 2 applications will fall outside of our support scope, and will not be eligible for platform support without first migrating to a supported version of Python.

What do I need to do to run my applications after Python 2 is sunset/reaches end of life ?

We strongly encourage you to migrate to Python 3. However, you do not need to take any action for your applications to continue to run after February 1st, 2021. On that date, your application will build and run, but it will no longer fall under the Heroku Support Policy.

Can I run any Python 2 applications after the Heroku 18 stack?

No. Python 2 applications will not build on the Heroku-20 stack, or future stacks after that.

Why is Python 2 being sunset?

Heroku is following the Python community by removing CPython 2 from official support. The decision to discontinue development on CPython 2 is is a community led effort to enable core Python maintainers to better support the language. Python is a free and open source language, and we all depend on these volunteer maintainers to keep Python performant and secure. The purpose of this document is to clarify the impacts of this decision on your applications

Keep reading

  • Python

Feedback

Log in to submit feedback.

Using WebSockets on Heroku with Python Python Dependencies via Pip

Information & Support

  • Getting Started
  • Documentation
  • Changelog
  • Compliance Center
  • Training & Education
  • Blog
  • Podcasts
  • Support Channels
  • Status

Language Reference

  • Node.js
  • Ruby
  • Java
  • PHP
  • Python
  • Go
  • Scala
  • Clojure

Other Resources

  • Careers
  • Elements
  • Products
  • Pricing

Subscribe to our monthly newsletter

Your email address:

  • RSS
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku Blog
    • Heroku News Blog
    • Heroku Engineering Blog
  • Heroku Podcasts
  • Twitter
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku
    • Heroku Status
  • Facebook
  • Instagram
  • Github
  • LinkedIn
  • YouTube
Heroku is acompany

 © Salesforce.com

  • heroku.com
  • Terms of Service
  • Privacy
  • Cookies
  • Cookie Preferences