How to make zappa work with my python 3.9 version?

2.2k Views Asked by At

I am trying to do zappa init but unfortunately I get this error :

Traceback (most recent call last):
  File "/usr/local/bin/zappa", line 5, in <module>
    from zappa.cli import handle
  File "/usr/local/lib/python3.9/site-packages/zappa/__init__.py", line 9, in <module>
    raise RuntimeError(err_msg)
RuntimeError: This version of Python (3.9) is not supported!
Zappa (and AWS Lambda) support the following versions of Python: ['3.6', '3.7', '3.8']

As you can see my version of python is 3.9 . I installed pyenv to make it works with 3.8 but it still doesn't work.

Any suggestion ?

1

There are 1 best solutions below

3
On

AWS lambda currently does not support python 3.9. You can see a list of supported runtimes here https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html