AWS Lambda pinecone-client package“No module named 'numpy.core._multiarray_umath'”error

kd3sttzy  于 9个月前  发布在  其他
关注(0)|答案(1)|浏览(112)

在AWS Lambda python 3.11运行时中导入pinecone-client python包时遇到“No module named 'numpy.core._multiarray_umath'”。我在AWS Cloud-9 AWS Linux环境中创建了lambda层,pinecone-client 2.2.4版本和numpy1.24.4版本自动安装为依赖项。

以下是错误文本

[ERROR] Runtime.ImportModuleError: Unable to import module 'app': 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.11 from "/var/lang/bin/python3.11"
  * The NumPy version is: "1.24.4"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: No module named 'numpy.core._multiarray_umath'

字符串
1.我已经按照以前的问题重新安装了setuptools包和numpy包。错误没有解决,错误消息保持不变。
1.我还验证了环境和运行时与lambda环境的匹配,结果是肯定的。

q8l4jmvw

q8l4jmvw1#

检查您的环境中是否有多个版本的Python,并确保使用相应的pip安装模块。

相关问题