Docker Community Forums

Share and learn in the Docker community.

Amazon linux container, python failure - No module named venv

trying to follow this example to prepare python deployment package:

when I do this step:

go into /mylambdapackage folder

cd /mylambdapackage

create Python environment in mylambda folder and activate it

python36 -m venv --copies mylambda && source mylambda/bin/activate

it told me:
No module named venv

i also tried pip, the same error, how can use venv or pip in this container? thanks.

need to run:
curl -O
python --user

then can use pip install modules into one package folder to prepare zip file