这些语句可以在yaml执行吗?

“ImportError: cannot import name '_imaging' from 'PIL' (/code/PIL/init.py)”

这个问题是因为,我引入了face-recognition,他需要dlib,cmake的支持。我用镜像部署的方式绕过了这个问题。镜像时的特殊需要:

RUN apt-get update RUN apt-get install -y gcc RUN apt-get install -y g++ RUN apt-get -y install cmake protobuf-compiler

这些语句可以在yaml执行吗?

展开
收起
云上静思 2022-11-18 13:08:53 377 分享 版权
1 条回答
写回答
取消 提交回答
  • 可以参考一下这个文档哈

    https://docs.serverless-devs.com/fc/command/build#apt-getlist

    此答案来自钉钉群“Serverless 开发者技术学习群”

    2022-11-18 15:39:27
    赞同 展开评论
问答地址:

快速交付实现商业价值。

收录在圈子:
+ 订阅
专注 Serverless、微服务、函数计算、Serverless 应用引擎、云原生技术
还有其他疑问?
咨询AI助理