I’m on mac OSX and deploying a python lambda on AWS.
I have created a local env source venv/bin/activate following these instructions.
I have installed all of the packages
$ pip install numpy
Requirement already satisfied: numpy in ./venv/lib/python3.5/site-packages (1.14.2)
then i deploy the package using
pip freeze > requirements.txt
serverless deploy
error when running on the lambda
START RequestId: ################### Version: $LATEST
Unable to import module ‘main’: Missing required dependencies [‘numpy’]
Also note: my code is not calling numpy, it’s calling quandl and quandl is calling numpy
requirements.txt
asn1crypto==0.24.0
certifi==2018.4.16
cffi==1.11.5
chardet==3.0.4
cryptography==2.2.2
idna==2.6
inflection==0.3.1
more-itertools==4.1.0
ndg-httpsclient==0.4.4
numpy==1.14.2
pandas==0.22.0
pyasn1==0.4.2
pycparser==2.18
pyOpenSSL==17.5.0
python-dateutil==2.7.2
pytz==2018.4
Quandl==3.3.0
requests==2.18.4
six==1.11.0
urllib3==1.22