出现错误
Building codeuri: /home/sagemaker-user/lab4/rag_app runtime: python3.10 architecture: x86_64 functions: RagAppFunction
Running PythonPipBuilder:ResolveDependencies
Build Failed
Error: PythonPipBuilder:ResolveDependencies - {numexpr==2.10.1(wheel)}
有人可以帮忙解决这个问题吗?
我已经尝试过了
pip 安装轮子
python3 -m pip install --升级 pip
pip 安装 numexpr==2.10.1
没成功
我降级到
numexpr==2.10.0
并且它起作用了。如果 numexpr 2.10.1 是另一个包的依赖项,您可以在实际包之前安装它,并且该包的需求文件可能允许旧版本的依赖项。对我来说,它适用于 rio-tiles。当然,如果您的包依赖于依赖项的重大更改,那么它就不起作用。
简而言之
pip install -r requirements.txt
失败了
rio-tiler==6.7.0
同时
numexpr==2.10.0
rio-tiler==6.7.0
有效。
或者,您可以使用
PackageType: Image
构建 Lambda 并获得对系统依赖项的完全控制。