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.
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.