How to update Lambda Python 3.6 to 3.9

0

1 - How do i update in AWS console GUI dashboard

質問済み 2年前405ビュー
1回答
1
承認された回答

When you are on the Code tab in your lambda function, scroll all the way down below your code.

You will see "Code Properties" followed by "Runtime Settings".

In "Runtime Settings" click on the Edit button and you should be able to change the Python version to 3.9

profile pictureAWS
エキスパート
回答済み 2年前
  • Yes, when I updated the python version 3.6 to 3.9 then I got the error as below:

    [ERROR] Runtime.ImportModuleError: Unable to import module 'src/myLambdaFunction': No module named 'cv2.cv2' Traceback (most recent call last):

    However, when I reverted back to 3.6 it was working. I have deployed the zip package already with lambda. So what I need to update or change to fix it ?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ