I am using a AWS Lambda and storing ML model in docker container. In my model i am using easyocr library which apparently requires a writeable file system. So i am trying to store easyocr in /tmp directory. I am able to import libraries from /tmp using -
import sys
sys.path.append('/tmp/lib/python3.7/site-packages/')
While it is working fine with other libraries but with easyocr it generates the following error.
I have tried updating LD_LIBRARY_PATH env variable as well but still it is not working. Any idea why?