Its been 4 days I am trying to solve this problem. I have created my code on local machine. Lambda function created on local machine is working perfectly fine. when I zip it with liberaries as mentioned in aws creating liberaries wit aws. and upload the zip folder to S3 bucket. Till here everything works fine. problem appears when I use this link in lambda function. lambda function does not find the sklearn liberary and return error
START RequestId: bf7b2618-34c5-11e7-a8eb-43a949065813 Version: $LATEST Unable to import module 'main': dynamic module does not define module export function (PyInit__check_build)
Contents of /var/task/sklearn/check_build: setup.py _check_build.so __init.pyc init.py setup.pyc
It seems that scikit-learn has not been built correctly.
If you have installed scikit-learn from source, please do not forget
to build the package before using it: run python setup.py install
or
make
in the source directory.
If you have used an installer, please check that it is suited for your Python version, your operating system and your platform.
I have tried all possible ways so far I found. when i run this command to build this package
python setup.py install or build
error appears Cpython __check_buid missing. Its been 4 days I tried everything. If anyone knows. Please help me out here.Thank you in advance.