Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何在Google Cloud函数中批量更新requirements.txt文件_Python_Google Cloud Platform_Google Cloud Functions - Fatal编程技术网

Python 如何在Google Cloud函数中批量更新requirements.txt文件

Python 如何在Google Cloud函数中批量更新requirements.txt文件,python,google-cloud-platform,google-cloud-functions,Python,Google Cloud Platform,Google Cloud Functions,我有大约200个用Python开发的函数作为云函数部署在GCP中。 我需要为所有这些函数更新中的一个库。 我怎样才能在所有这些函数中一次性大量更新requirements.txt,而不必逐个更新? 有可能吗?如果您下载了200个云函数的源代码,您可以编写一个bash/python脚本来更新每个函数的requirements.txt。您的源目录是如何构造的?您是升级到特定版本还是最新版本?我需要更新到特定版本。我有大约200个函数,每个函数基本上有2个文件。代码(一个.py文件)和requirem

我有大约200个用Python开发的函数作为云函数部署在GCP中。 我需要为所有这些函数更新中的一个库。 我怎样才能在所有这些函数中一次性大量更新requirements.txt,而不必逐个更新?
有可能吗?

如果您下载了200个云函数的源代码,您可以编写一个bash/python脚本来更新每个函数的requirements.txt。

您的源目录是如何构造的?您是升级到特定版本还是最新版本?我需要更新到特定版本。我有大约200个函数,每个函数基本上有2个文件。代码(一个.py文件)和requirements.txt。谢谢