I’m getting an error trying to import the mechanize library in AWS Lambda script.
T Michael Cornelia
11

Mechanize isn’t part of the standard package, so you’ll need to create a deployment package that includes it. This basically means installing Mechanize to a folder on your computer and zipping that up along with your code file, then uploading it. After that you can edit the code in the Lambda console. See here: http://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.