Google Cloud Functions中的Python [英] Python in Google Cloud Functions

查看:117
本文介绍了Google Cloud Functions中的Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Cloud Functions可以使用sklearn,pandas等软件包处理python吗?如果是这样,有人可以指出我的资源方向吗?

Can Google Cloud Functions handle python with packages like sklearn, pandas, etc? If so, can someone point me in the direction of resources on how to do so.

我已经搜索了一段时间,似乎这是不可能的,我发现的只是将基本python语言部署到google cloud的资源.

I've been searching a while and it seems like this is impossible, all I've found are resources to deploy the base python language to google cloud.

推荐答案

现在支持Python 3.7.
通过Google云控制台创建一个的步骤:

Python 3.7 is supported now.
Steps to create one via the google cloud console:

  1. 转到Google Cloud控制台中的Google Cloud功能,然后单击创建功能"
  1. go to google cloud functions in the google cloud console and click on create function

2.指定函数的属性

2.specify the function's properties

  1. 选择触发器
  1. select trigger

4.将运行时更改为python 3.7

4.change runtime to python 3.7

  1. 输入云功能逻辑和入口点

  1. enter your cloud function logic and entry point

在requirements.txt中输入python依赖项

enter python dependencies in requirements.txt

这篇关于Google Cloud Functions中的Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆