gpt4 book ai didi

python - 无法使用 AWS Lambda 构建 Scikit 学习包

转载 作者:行者123 更新时间:2023-12-02 09:25:36 24 4
gpt4 key购买 nike

我关注了post为 AWS Lambda 构建 Scikit 学习包,但在调用 lambda 函数时出现以下错误。我在 Windows 上使用 Docker Toolbox。不确定为什么会收到以下错误消息?

{"errorMessage": "Unable to import module 'lambda_function': No module named 'sklearn.check_build._check_build'\n___________________________________________________________________________\nContents of /var/task/sklearn/__check_build:\nsetup.py __pycache _check_build.cpython-36m-x86_64-linux-gnu.so\n__init__.py\n___________________________________________________________________________\nIt seems that scikit-learn has not been built correctly.\n\nIf you have installed scikit-learn from source, please do not forget\nto build the package before using it: run python setup.py install or\nmake in the source directory.\n\nIf you have used an installer, please check that it is suited for your\nPython version, your operating system and your platform.", "errorType": "Runtime.ImportModuleError"}

最佳答案

如果您仍然遇到此问题,请输入 post可能会帮助你。特别是,尝试在 pythonRequirements 下添加 dockerizePip: non-linux

关于python - 无法使用 AWS Lambda 构建 Scikit 学习包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55209452/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com