aws - “Unable to import module 'process': /var/task/numpy/core/multiarray.so: invalid ELF header”

前端 未结 2 1606
梦如初夏
梦如初夏 2020-12-18 19:48

Using aws lambda I am receiving the following error when the script is run with the numpy module:

Unable to import module \'process\': /var/task/numpy

2条回答
  •  庸人自扰
    2020-12-18 20:33

    I had similar error :

    /var/task/bcrypt/_bcrypt.so: undefined symbol: PyInt_FromLong
    

    Previous answer didn't seem to work for my Pyhon:3.6 lambda.

    I succeeded using this article : https://medium.com/i-like-big-data-and-i-cannot-lie/how-to-create-an-aws-lambda-python-3-6-deployment-package-using-docker-d0e847207dd6

提交回复
热议问题