AWS lambda says it supports python 2.7 and 3.6 but 3.6 is not in amazon linux ami repos

I am a little confused by this. If I try to create a new python lambda in the aws console, I see the following: enter image description here

Now I want to use python 3.6, and I also want to pack some binaries using virtualenv (I will have to do this to run the cryptography module).

I follow this document: http://docs.aws.amazon.com/lambda/latest/dg/with-s3-example-deployment-pkg.html

So, I created a new amazon linux ami and tried to install python36-devel, as the document says, but it was not in the repositories. The last python3 was python35.

So my question is: where does AWS lambda get the python 3.6 interpreter? And where should I install it from an amazon linux instance to create virtualenv that uses the 3.6 interpreter.

##############Edit:

According to the documentation I pointed out lambda is working on amzn-ami-hvm-2016.03.3.x86_64-gp2

I ran an instance with these ami and noticed the same thing. Only python35 is in its repositories. So how does Amazon 3.6 work? Is this the wrong ami or do they install 3.6 translator on it differently?

+4
source share
2 answers

this, AMI . amzn-ami-hvm-2016.03.3.x86_64-gp2. .

, , , , . , , , Lambda.

+4
0

Source: https://habr.com/ru/post/1677215/


All Articles