PythonPipBuilder:ResolveDependencies - {numpy==1.20.3(wheel)}

Nar*_*soo 11 sam amazon-web-services

sam build 失败并出现以下错误:

错误:PythonPipBuilder:ResolveDependencies - {numpy==1.20.3(wheel)}

我试过sam build --use-container,但得到同样的错误。

Nar*_*soo 21

显然,2021 年 5 月 10 日发布的新 numpy 1.20.3 不兼容。我在我的 requirements.txt 文件中指定了以前版本的 numpy,它工作得很好。

$cat requirements.txt
numpy==1.20.2
Run Code Online (Sandbox Code Playgroud)

  • 这有效: pandas \n numpy==1.20.2 (3认同)