I am trying to create an AWS lambda function written in Python.
The Lambda function fails with the following error:
The size of the unzipped file should be less than 262144000 bytes.
Below are my requirements. txt
numpy
pandas
pprint
pint
flask
scipy
gunicorn
pydblite
jsonschema
matplotlib
sklearn
After removing all the files test
, *.pyc
and *-info*
the following packages are the main tabs for the volume.
scipy 126M
pandas 64M
numpy 64M
matplotlib 29M
I replaced pandas' read_excel with xlsx
.
If there is any way to get the size of the reduced version of packages, that would be great. Otherwise, looking for alternatives:
source
share