简体   繁体   English

"Unbale 使用 AWS SAM 构建 python 应用程序"

[英]Unbale to build a python app with AWS SAM

I am trying to build and run the sample python<\/code> application from AWS SAM.我正在尝试从 AWS SAM 构建和运行示例python<\/code>应用程序。 I just installed python, below is what command lines gives..我刚刚安装了python,下面是命令行给出的..

D:\Udemy Work>python
Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

D:\Udemy Work>pip -V
pip 21.1.3 from c:\users\user\appdata\local\programs\python\python39\lib\site-packages\pip (python 3.9)

python3.9 is not supported .不支持python3.9 The supported runtimes are listed here and the latest python that you can use is python3.8 . 此处列出支持的运行时,您可以使用的最新 python 是python3.8

SAM supports docker through --use-container flag. SAM 通过--use-container标志支持docker。 Thus you can build your packages using it for any python version you want SAM.因此,您可以使用它为您想要 SAM 的任何 python 版本构建您的包。

还要确保将 SAM CLI 更新到最新版本以支持 Python 3.9 运行时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM