This error occurs on sls deploy. I think it should work with zip: true. Code shared below
service: test-big-libs
provider:
name: aws
runtime: python3.6
stage: ${opt:stage,'dev'}
custom:
pythonRequirements:
dockerizePip: true
zip: true
slim: true
try:
import unzip_requirements
except ImportError:
pass
import numpy as np
import scipy as sc
import sklearn as sk
import joblib
import pandas as pd
import json
def test(event, context):
body = {
"message": "big libs works"
}
response = {
"statusCode": 200,
"body": json.dumps(body)
}
return response
joblib==0.13.2
numpy==1.16.2
pandas==0.24.2
python-dateutil==2.8.0
pytz==2019.1
scikit-learn==0.20.3
scipy==1.2.1
six==1.12.0
sklearn==0.0
this solves my problem
package:
exclude:
- node_modules/**
- venv/**
Most helpful comment
this solves my problem