How to Use Libraries in AWS Lambdas - Python Layer Example (Requests)

preview_player
Показать описание

Terminal Steps:
mkdir python
cd python
pip3 install [library-name-here] -t .
cd ..
Рекомендации по теме
Комментарии
Автор

Sorry! My powershell window was very small and probably hard to read lol. Here are the templated commands you want to run for this process, if you are using Python:

Terminal Steps:
mkdir python
cd python
pip3 install [library-name-here] -t .
cd ..
zip -r python.zip python

ADDITIONALLY, another commenter let me know that the command 'pip install requests "urllib3<2" -t . --upgrade' may be now needed in order to get this working as intended.

ImChrisCastro
Автор

Simple, fast, and shows many tips in the video. Normally I was getting errors after creating the .zip in the windows, not on WSL. Top man!

felipetmota
Автор

So glad I found this. You explained it very clearly, and I could follow along and get a test layer going in my account. Now to figure out how to automate this ...

magicat
Автор

Just wanted to send a big thanks for this! I spent two days figuring out why I was getting the import module error. I tried zipping it in different ways and had no luck. I'm new to this so I was stuck. Until I say this video and the comment below pip install requests "urllib3<2" -t . --upgrade. fixed my issue on the first try!

brittanymorris
Автор

Finally, a Lambda Layer that works!!! Thank you so much. I have been trying to figure this out the whole day.

purplishjen
Автор

dude its so hard to find a great video on this topic... great job!

SunilMakkar
Автор

You're a life saver! Thank you. You've gained a new subscriber.

TheOfficialMovmnt
Автор

You are so funny and smart. I loved your tutorial.

SayWhatYouNeedTSay
Автор

Hi Chris I spent all day trying to figure out how to install packages. I found your video and was hoping it would be the solution. I followed each step, but still get errors when trying to install pandas and run. Is there any common issues that you can think of not covered in the video?

genewachtel
Автор

Thank you Chris. Good video and explanation, straight to the point.

iago-neres
Автор

Hi May i know how you are connecting to your shell before creating directory . please comment

ANKITAKUMARI-hqh
Автор

Thank you very much good sir, all the way from Scotland 🙌

matthewshedden
Автор

What about heavy libraries? Like Spacy.

felipe.arce
Автор

Thank you very much Chris, your video helped me a lot, keep it up. Here’s a new follower.

danibri
Автор

thanks Chris! just an update: it seems like now you need to use pip install requests "urllib3<2" -t . --upgrade, so that it works correctly in AWS

async
Автор

Finally a tutorial that actually works!

MarianaCárdenas-qv
Автор

Have you been able to make a layer for pyodbc that works with mssql server? The latest I see that anyone has made is for python 3.9, but I can't for the life of me get it to work with python 3.11

AndersonOozie
Автор

Thank you so much !! I needed this urgently !!

touficanid
Автор

awesome video. Thank you for this simple video! this was exactly what I needed. Bro

malwaredev
Автор

thank you for this simple video! this was exactly what I needed.

ErinClayton-xcpf
join shbcf.ru