All Products
Search
Document Center

Alibaba Cloud Linux:Announcement of Python 2.7 EOL for Alibaba Cloud Linux 3

Last Updated:Jun 26, 2025

Python 2.7 in Alibaba Cloud Linux 3 reached its end of lifecycle (EOL) on June 20, 2025, after which related components are no longer updated. This topic describes how to upgrade from Python 2 to Python 3 and provides related technical support information.

Background information

Alibaba Cloud Linux 3 introduced Python 2.7 to support applications that require early Python versions. However, Python 2.7 maintenance depends on continuous updates and security fixes from Alibaba Cloud Linux 2. As Alibaba Cloud Linux 2 enters the Extended Life Support (ELS) phase and the Python 2.7 community discontinues updates and maintenance, vulnerability fixes and feature updates for Python 2.7 are no longer provided. As a result, Python 2.7 in Alibaba Cloud Linux 3 will no longer receive technical support.

  • If your operating systems still use Python 2.7, upgrade to Python 3.6, which is the main version used in Alibaba Cloud Linux 3.

  • To ensure a smooth transition for your applications, Python 2.7 remains available in Alibaba Cloud Linux 3. However, security or feature updates are no longer provided.

Impact scope

Alibaba Cloud Linux 3 operating systems that use Python 2.7.

Warning
  • Vulnerabilities in Python 2.7 cannot be fixed, posing security risks.

  • Third-party libraries and dependent components may cause compatibility issues due to end of maintenance.

Upgrade from Python 2 to Python 3

The Python community provides guidelines and automatic Python 2 to 3 code translation tools to help you port Python 2 code to Python 3.

Technical support

  • Technical support

    • (Recommended): Join DingTalk group 23149462 for technical support.

    • To provide feedback on issues, submit a ticket.

  • Emergency support

    If your applications cannot be migrated in time, contact your dedicated technical support team to discuss transition solutions.

FAQ

Q1: Will migration affect existing applications?

Python 3 has significant syntax differences from Python 2, requiring comprehensive testing of migrated code. We recommend phased migration and rollback preparation.

Q2: Can I continue to manually install Python 2.7 in Alibaba Cloud Linux 3?

The official Alibaba Cloud Linux 3 repository still supports the download of Python 2.7 installation packages but no longer provides updates for Python 2.7. If you need newer versions or CVE fixes, compile them yourself or use third-party repositories. Alibaba Cloud does not provide technical support for these scenarios.

Q3: Can tools be used for automated migration?

No tools can be used for automated migration. You can use the methods provided by the native Python community.