【Upgrade Timeline】
From May 1, 2024 (UTC+8), Alibaba Cloud's Python SDK will no longer support the Python 2.7 version.
From October 1, 2024 (UTC+8), Alibaba Cloud's Python SDK will no longer support Python 3.6 and versions below.

【Upgrade Details】
Affected Versions: [Supported SDKs](https://www.alibabacloud.com/help/en/sdk/product-overview/alibaba-cloud-sdk-version-matrix)
From those dates forward, the new version of Alibaba Cloud's Python SDK will not support Python 3.6 or any earlier versions. The Python Software Foundation (PSF) has announced the end of official support for Python 2 as of January 1, 2020, and for Python 3.6 as of December 23, 2021. Following this schedule, Alibaba Cloud will discontinue support for Python 2.7 and Python 3.6 to ensure our SDK continues to receive updates for security patches and new features. Please refer to the [Alibaba Cloud SDK support policies](https://www.alibabacloud.com/help/en/sdk/product-overview/alibaba-cloud-sdk-support-policies) for more details.

【Upgrade Impact】Starting from the upgrade dates, if you update your Python SDK package version, you must upgrade your Python runtime environment to at least Python 3.7, or you will encounter compilation errors after the SDK update. If you do not update the package version, your current runtime should continue to operate normally, but we strongly recommend migrating your SDK to a supported runtime version to continue accessing the latest Alibaba Cloud product OpenAPIs and to receive security patches.
For more information, please read:
[End of support for Python 2.7 and 3.6 in Alibaba Cloud SDK for Python](https://www.alibabacloud.com/help/en/sdk/product-overview/announcing-end-of-support-for-python2-and-python36)

【Upgrade Guide】 The Python community offers guidelines and tools to assist you in migrating your Python 2 code to Python 3. For detailed guidance, refer to:
[How to port Python 2 Code to Python 3](https://docs.python.org/3/howto/pyporting.html)
[25.4. 2to3 - Automated Python 2 to 3 code translation — Python 2.7.18 documentation](https://docs.python.org/2/library/2to3.html)
phone Contact Us