Personally, I do it with docker. I don't bother with venvs, because python is just not designed to be self-contained (or maybe it's a failed implementation of such design). As to lambda - using serverless and this https://github.com/UnitedIncome/serverless-python-requiremen... may help you.