---
title: "Discussion on \"Solution for error: No module named 'PIL or AWS Lambda Python PIL cannot import name ‘_imaging’”\nCreating a custom layer for lambda function for PIL\" | Hashnode"
description: "Discussion on \"Solution for error: No module named 'PIL or AWS Lambda Python PIL cannot import name ‘_imaging’”\nCreating a custom layer for lambda function for PIL\". What is aws lambda custome layer:\nIn the context of AWS Lambda, a custom layer refers to a package of code or libraries that can be attached to a Lambda function to provide additional functionality. Custom layers allow you to separate reusable code f..."
url: "https://hashnode.com/posts/solution-for-error-no-module-named-pil-or-aws-lambda-python-pil-cannot-import-name-imaging-creating-a-custom-layer-for-lambda-function-for-pil/64399351f54b11c44d816532"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Solution for error: No module named 'PIL or AWS Lambda Python PIL cannot import name ‘\_imaging’” Creating a custom layer for lambda function for PIL](https://devopstutorial.hashnode.dev/solution-for-error-no-module-named-pil-or-aws-lambda-python-pil-cannot-import-name-imaging-creating-a-custom-layer-for-lambda-function-for-pil?utm_source=hashnode&utm_medium=feed)

What is aws lambda custome layer: In the context of AWS Lambda, a custom layer refers to a package of code or libraries that can be attached to a Lambda function to provide additional functionality. Custom layers allow you to separate reusable code f...

Apr 14, 2023 · 4 min read · devopstutorial.hashnode.dev  
Updated Apr 16, 2023  
Read the article

-   [#aws-lambda-layer](https://hashnode.com/tag/aws-lambda-layer)
-   [#no-module-named-pil](https://hashnode.com/tag/no-module-named-pil)
-   [#pil-cannot-import-name-imaging](https://hashnode.com/tag/pil-cannot-import-name-imaging)
-   [#lambda-custom-layers](https://hashnode.com/tag/lambda-custom-layers)
-   [#custom-layer](https://hashnode.com/tag/custom-layer)

## Written by

[Ram Kumar](https://hashnode.com/@devopstutorial)

@devopstutorial · INDIA

  
[View profile](https://hashnode.com/@devopstutorial)

"Transforming Software Delivery with DevOps: Insights, Tips, and Best Practices Learn and Grow your knowledge 1% every day. Let's start!

I am a seasoned DevOps Engineer/Consultant with a passion for helping organizations streamline their software delivery processes. With expertise in tools like GIT, Jenkins, Docker, Kubernetes, AWS, GCP and terraform. I specialize in designing and implementing automated build, test, and deployment pipelines to accelerate time-to-market and improve quality. I have extensive experienced on various Linux flavor's , Shell Scripting, Oracle Andin, SQL, PL/SQL. In my posts, I'll be sharing insights on DevOps best practices, infrastructure automation, and optimizing software delivery workflows. Stay tuned for valuable tips and tricks to enhance your DevOps practices and deliver reliable software to your customers. Let's connect and embark on a journey towards efficient and reliable software delivery! Feel free to reach out for any DevOps-related questions or discussions. Looking forward to connecting with fellow DevOps enthusiasts! #DevOpsConsultant #Automation #SoftwareDelivery #DevOpS Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[likhit gatagat](https://hashnode.com/@likhitgatagat)

[Apr 16, 2023](https://hashnode.com/posts/solution-for-error-no-module-named-pil-or-aws-lambda-python-pil-cannot-import-name-imaging-creating-a-custom-layer-for-lambda-function-for-pil/64399351f54b11c44d816532/comment/643ba3e1f44a03c1512ae09e)

Thanks a lot Ram!!
