简体   繁体   中英

Unbale to build a python app with AWS SAM

I am trying to build and run the sample python<\/code> application from AWS SAM. I just installed python, below is what command lines gives..

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 . The supported runtimes are listed here and the latest python that you can use is python3.8 .

SAM supports docker through --use-container flag. Thus you can build your packages using it for any python version you want SAM.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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