AWS Lambda supports specific Python versions (e.g., 3.9, 3.10). If your local environment uses a different version, dependencies built there might not work.
Also,AWS Lambda expects a very specific structure for Python layers:
layer.zip/python/lib/python3.10/site-packages/