Python version support(Python 版本支持)¶
As Python development continues, the Python Software Foundation marks old Python versions as "end of life" (EOL) ↗; versions beyond their EOL date are officially unsupported.
Foundry and Python versioning¶
Starting from Python version 3.9, Foundry will follow the Python Software Foundation's EOL schedule and will not support deprecated Python versions. Deprecated Python versions can pose security risks to the platform and may be incompatible with technologies necessary for the platform to function (for example, Apache Spark does not support older Python versions). Palantir will notify Foundry users who are using Python versions that are approaching EOL.
How do I know if my workflows are using deprecated Python versions?¶
You will be notified by pop-ups and banners if one of your workflows is using a deprecated Python version. These notifications will contain information on how to upgrade from the deprecated version.
Which Python versions are safe?¶
The Python Software Foundation's version end of life table ↗ is continuously updated and indicates which Python versions are safe. We suggest that you always use the latest supported version. You can refer to the following table for information about Foundry support of Python versions.
| Version | Supported in Foundry | End of life start in Foundry | Support discontinued in Foundry |
|---|---|---|---|
| 3.6 | No* | 2023-07-16 | 2024-01-31 |
| 3.7 | No* | 2023-07-16 | 2024-01-31 |
| 3.8 | No* | 2024-09-04 | 2025-01-31 |
| 3.9 | No* | 2025-10-01 | 2026-01-31 |
| 3.10 | Yes | 2026-04-30 | 2026-10-31 |
| 3.11 | Yes | 2027-04-30 | 2027-10-31 |
| 3.12 | Yes | 2028-04-30 | 2028-10-31 |
| 3.13 | Coming soon | 2029-04-30 | 2029-10-31 |
| 3.14 | In planning | 2030-04-30 | 2030-10-31 |
* This indicates a version that has reached EOL in Foundry, which means that workflows using this version are unsupported and there are no guarantees of functionality or compatibility.
:::callout{theme="warning" title="Warning"} Palantir will not offer support for workflows that run on Python versions past EOL. :::
Python version deprecations¶
Campaigns will be created in platform to help users identify affected workflows at start of end of life.
Python 3.10 will be unsupported in Foundry starting on 2026-10-31. Users will be notified with information on how to identify any affected workflows and migrate to non-deprecated Python versions before the deadline.
Python 3.9 is no longer supported in Foundry as of 2026-01-31. Users should migrate to non-deprecated Python versions.
Python 3.6, 3.7, and 3.8 are no longer supported in Foundry as of 2025-01-31. Users should migrate to non-deprecated Python versions.
Refer to the Environment Troubleshooting guide to learn more about changing your Python versions.
中文翻译¶
Python 版本支持¶
随着 Python 迭代开发,Python软件基金会(Python Software Foundation)会将旧版本 Python 标记为「生命周期结束」(End of Life,简称 EOL)↗;超出 EOL 日期的版本将不再获得官方支持。
Foundry 与 Python 版本支持规则¶
从 Python 3.9 版本起,Foundry 将遵循 Python 软件基金会的 EOL 时间表,不再支持已弃用的 Python 版本。已弃用的 Python 版本可能给平台带来安全风险,也可能与平台运行所需的技术组件不兼容(例如 Apache Spark 就不支持过旧的 Python 版本)。Palantir 会向使用即将到达 EOL 的 Python 版本的 Foundry 用户发送通知。
如何判断我的工作流(workflow)是否在使用已弃用的 Python 版本?¶
如果你的某个工作流使用了已弃用的 Python 版本,你会收到弹窗和横幅通知,这些通知会包含从弃用版本升级的操作指引。
哪些 Python 版本是安全可用的?¶
Python 软件基金会的版本生命周期结束时间表 ↗会持续更新,标明了哪些 Python 版本是安全的。我们建议你始终使用官方支持的最新版本。你可以参考下表了解 Foundry 对 Python 版本的支持情况。
| 版本号 | Foundry 支持状态 | Foundry EOL 起始日期 | Foundry 终止支持日期 |
|---|---|---|---|
| 3.6 | 否* | 2023-07-16 | 2024-01-31 |
| 3.7 | 否* | 2023-07-16 | 2024-01-31 |
| 3.8 | 否* | 2024-09-04 | 2025-01-31 |
| 3.9 | 否* | 2025-10-01 | 2026-01-31 |
| 3.10 | 是 | 2026-04-30 | 2026-10-31 |
| 3.11 | 是 | 2027-04-30 | 2027-10-31 |
| 3.12 | 是 | 2028-04-30 | 2028-10-31 |
| 3.13 | 即将推出 | 2029-04-30 | 2029-10-31 |
| 3.14 | 规划中 | 2030-04-30 | 2030-10-31 |
* 表示该版本已在 Foundry 中到达 EOL,意味着使用该版本的工作流无法获得支持,平台不保证其功能可用性或兼容性。
:::callout{theme="warning" title="警告"} 对于运行已过 EOL 的 Python 版本的工作流,Palantir 将不提供任何支持。 :::
Python 版本弃用说明¶
EOL 阶段启动时,平台会推出专项通知活动,帮助用户识别受影响的工作流。
Foundry 将于 2026 年 10 月 31 日起停止支持 Python 3.10。用户会收到通知,包含如何识别受影响工作流、以及在截止日期前迁移至未弃用 Python 版本的相关指引。
自 2026 年 1 月 31 日起,Foundry 已不再支持 Python 3.9,请用户尽快迁移至未弃用的 Python 版本。
自 2025 年 1 月 31 日起,Foundry 已不再支持 Python 3.6、3.7 和 3.8,请用户尽快迁移至未弃用的 Python 版本。