小编Cha*_*ate的帖子

无法在 AWS Lambda 中导入 numpy 1.19.1 没有名为“numpy.core._multiarray_umath”的模块

我无法使用 AWS Lambda 上的 python3.8 在 AWS Lambda 中导入 numpy 1.19.1

\n

我正在使用以下依赖项:

\n
    \n
  • 熊猫1.1.0
  • \n
  • pyarrow 1.0.0
  • \n
  • numpy 1.19.1
  • \n
  • psycopg2 2.8.5
  • \n
\n

因为我在 Windows 环境中工作,所以我创建了一个安装了 python3.8 的 EC2 Linux 实例并下载了所有必需的库,然后将它们添加到项目中,但是当我尝试导入 pandas 时,我得到以下信息:

\n
[ERROR] ImportError: Unable to import required dependencies:\nnumpy: \n\nIMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!\n\nImporting the numpy c-extensions failed.\n- Try uninstalling and reinstalling numpy.\n- If you have already done that, then:\n  1. Check that you expected to use …
Run Code Online (Sandbox Code Playgroud)

linux numpy amazon-web-services pandas aws-lambda

13
推荐指数
2
解决办法
2万
查看次数

标签 统计

amazon-web-services ×1

aws-lambda ×1

linux ×1

numpy ×1

pandas ×1