【问题标题】:G++ not detected Google Cloud functionsG++ 未检测到 Google Cloud 功能
【发布时间】:2021-09-08 21:36:21
【问题描述】:

我需要运行一些我收到警告的 pymc3 代码 未检测到 GCC。

我在 Google Cloud Function 上使用 Python 3.7 基础映像。

有什么方法可以在云函数环境上安装 GCC 编译器?

【问题讨论】:

    标签: google-cloud-platform google-cloud-functions


    【解决方案1】:

    不,您不能自定义 Cloud Functions 运行时环境。它是无服务器的,您只需提供您的代码。

    如果您想对运行时环境进行更多控制并安装构建或运行应用程序所需的二进制文件,您可以使用cloud run。您创建自己的容器,进而创建运行时环境,并以无服务器方式运行它(按使用模型付费,如 Cloud Functions)。

    【讨论】:

      猜你喜欢
      • 2016-11-05
      • 2016-08-11
      • 2019-06-15
      • 2020-11-19
      • 2018-07-03
      • 2017-02-27
      • 2021-09-14
      • 2023-03-28
      • 1970-01-01
      相关资源
      最近更新 更多