我试图从位于S3的Zip文件运行AWS Lambda(python3.6)中的函数。在
遵循不同位置的说明(AWS文档、其他博客等)。然而,我似乎在加载numpy时出了问题。在
有人能帮忙吗?在
这是我上传到S3-ZIP file的Zip文件
另外,当我测试zip时,错误日志返回以下信息-
START RequestId: b004d192-17e7-11e8-8323-bb9e005088cc Version: $LATEST
Unable to import module 'trial22':
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all files not under version control). Otherwise reinstall numpy.
Original error was: cannot import name 'multiarray'
END RequestId: b004d192-17e7-11e8-8323-bb9e005088cc
REPORT RequestId: b004d192-17e7-11e8-8323-bb9e005088cc Duration: 0.84 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 31 MB
在尝试卸载(然后安装)numpy时,virtualenv会尝试删除全局包,而不是创建它的特定目录中的全局包。在
^{pr2}$我知道我在某个地方犯了一些愚蠢的错误,但就是不知道在哪里和什么地方——有人能帮我解释一下吗?在
以下是我收到的AWS支持回复:
相关问题 更多 >
编程相关推荐