我正在尝试使用Python创建一个AWS Lambda函数.我想要创建一个zip部署程序包,然后将其上传到我的AWS环境中,而不是一个内联函数.我的源代码位于test.py文件中,而其他依赖项(如numpy,sklearn等)与源代码位于同一文件夹中.
我测试我的lambda函数时遇到错误.
Unable to import module ‘test’: No module named
‘sklearn.__check_build._check_build’
___________________________________________________________________________ Contents of /var/task/sklearn/__check_build: setup.py
__pycache__ _check_build.cp36-win_amd64.pyd
__init__.py
___________________________________________________________________________ It seems that scikit-learn has not been built correctly. If you have
installed scikit-learn from source, please do not forget to build the
package before using it: run python setup.py install or make in
the source directory. If you have used an installer, please check that
it is suited for your Python version, your operating system and your
platform.
这