📅  最后修改于: 2022-03-11 14:51:25.892000             🧑  作者: Mango
# It more over accours in aws lambda only.
#Issue: Runtime.ImportModuleError: Unable to import module 'lambda_function': libGL.so.1: cannot open shared object file: No such file or directory
#More over it causes to import cv2 into aws lambda-layers. to resolve this issue
create layer instad of $ pip install opencv-python
use $ pip install opencv-python-headless
Now generate layer with opencv-python-headless module. Now check with it it's resolve your issue.