AWS lambda 何时支持 python 3.9?
When will AWS lambda support python 3.9?
嗨,有谁知道我怎样才能知道 AWS lambda 何时会将他们的支持升级到 python 3.9?上次升级到 3.8 是 2019 年,距离 v3.9 发布已经有一段时间了。
我很想使用最新的 v3.9 语言功能,但很遗憾不能在 AWS 中使用
更新:
截至 2021 年 8 月 16 日 Python 现在支持 3.9:
AWS Lambda now supports Python 3.9 as both a managed runtime and a container base image. You can now author AWS Lambda functions in Python 3.9 and use its new features, such as support for TLS 1.3, new string and dictionary operations, and improved time zone support. Python 3.9 also includes performance optimizations that you can benefit from without making any code changes. For more information on Lambda’s support for Python 3.9, see our blog post at Python 3.9 runtime now available in AWS Lambda.
— Source
旧答案
AWS 通常没有这些的 public 路线图,但您现在可以从运行 Python 3.9 的 docker 容器创建 lambda 函数,如果您想使用那个版本。
您必须构建一个包含来自 PyPi 的 awslambdaric
package 的映像,这是 AWS 用来与 Lambda 对话的接口。该软件包已经与 python 3.9 兼容。
有关在 Python 中为 Lambda 构建图像的更多信息,请参阅:Deploy Python Lambda functions with container images
截至 2021 年 8 月 16 日,Lambda 运行时支持 Python 3.9。
嗨,有谁知道我怎样才能知道 AWS lambda 何时会将他们的支持升级到 python 3.9?上次升级到 3.8 是 2019 年,距离 v3.9 发布已经有一段时间了。
我很想使用最新的 v3.9 语言功能,但很遗憾不能在 AWS 中使用
更新:
截至 2021 年 8 月 16 日 Python 现在支持 3.9:
AWS Lambda now supports Python 3.9 as both a managed runtime and a container base image. You can now author AWS Lambda functions in Python 3.9 and use its new features, such as support for TLS 1.3, new string and dictionary operations, and improved time zone support. Python 3.9 also includes performance optimizations that you can benefit from without making any code changes. For more information on Lambda’s support for Python 3.9, see our blog post at Python 3.9 runtime now available in AWS Lambda.
— Source
旧答案
AWS 通常没有这些的 public 路线图,但您现在可以从运行 Python 3.9 的 docker 容器创建 lambda 函数,如果您想使用那个版本。
您必须构建一个包含来自 PyPi 的 awslambdaric
package 的映像,这是 AWS 用来与 Lambda 对话的接口。该软件包已经与 python 3.9 兼容。
有关在 Python 中为 Lambda 构建图像的更多信息,请参阅:Deploy Python Lambda functions with container images
截至 2021 年 8 月 16 日,Lambda 运行时支持 Python 3.9。