简体   繁体   English

(云 Function web UI)ModuleNotFoundError:没有名为“googleapiclient”的模块

[英](Cloud Function web UI) ModuleNotFoundError: No module named 'googleapiclient'

I am using from googleapiclient.discovery import build inside my Cloud Function program (python 3.8) .我在我的 Cloud Function 程序(python 3.8)中使用from googleapiclient.discovery import build

I've been searching for help regarding an error I get when deploying my Google Cloud Function from the GCP console UI: ModuleNotFoundError: No module named 'googleapiclient'我一直在寻求有关从 GCP 控制台 UI 部署 Google Cloud Function 时遇到的错误的帮助: ModuleNotFoundError: No module named 'googleapiclient'

Some of the answers, provided by the community, to similar problems were to update the module via pip with: pip install --upgrade google-api-python-client .社区提供的一些类似问题的答案是通过 pip 更新模块pip install --upgrade google-api-python-client Therefore I'm not able to update it or re-install it since I'm using the Cloud Function web UI .因此,我无法更新或重新安装它,因为我使用的是Cloud Function web UI

I have already added the right requirement inside the requirements.txt file: google-api-python-client==1.2我已经在requirements.txt文件中添加了正确的要求: google-api-python-client==1.2

Why am I using google-api-python-client 1.2?为什么我使用 google-api-python-client 1.2?
Because of this error message when I tried to use the latest version:由于当我尝试使用最新版本时出现此错误消息:
Build failed: gclient-service-account-auth 0.2.2 has requirement google-api-python-client==1.2, but you have google-api-python-client 1.10.1

I can't find how to solve this ModuleNotFoundError: No module named 'googleapiclient' , do you have any clue/advice to share about this?我找不到如何解决这个ModuleNotFoundError: No module named 'googleapiclient' ,你有什么线索/建议可以分享吗?

Thank you in advance, can't wait to see what's your take on this issue:)提前谢谢你,迫不及待地想看看你对这个问题的看法:)

You can add google-api-python-client to the requirements.txt file.您可以将google-api-python-client添加到 requirements.txt 文件中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ModuleNotFoundError:没有名为“google.cloud.location”的模块 - ModuleNotFoundError: No module named 'google.cloud.location' Google Cloud Dataflow:ModuleNotFoundError:运行集成测试时没有名为“main”的模块 - Google Cloud Dataflow: ModuleNotFoundError: No module named 'main' when running integration test ModuleNotFoundError:没有名为“psycopg2”的模块 [AWS Glue] - ModuleNotFoundError: No module named 'psycopg2' [AWS Glue] ModuleNotFoundError:运行 GCP 数据流作业时没有名为“oracledb”的模块 - ModuleNotFoundError: No module named 'oracledb' when running GCP Dataflow jobs ModuleNotFoundError:将 Django 应用程序部署到 AWS EB 时没有名为“application”的模块 - ModuleNotFoundError: No module named 'application' when deploying Django app to AWS EB GCP Composer - ModuleNotFoundError:没有名为“airflow.providers.sftp”的模块 - GCP Composer - ModuleNotFoundError: No module named 'airflow.providers.sftp' SAM 应用程序运行但运行 pytest 抛出...ModuleNotFoundError: No module named 'aurora' - SAM app works but running pytest throws...ModuleNotFoundError: No module named 'aurora' Google Cloud Functions 上没有名为 psycopg2._psycopg2 的模块 - No module named psycopg2._psycopg2 on Google Cloud Functions 将 web3 集成到云功能模块中 - Integrating web3 in cloud functions module 无法导入模块“lambda_function”:没有名为“psycopg2._psycopg aws lambda 函数”的模块 - Unable to import module 'lambda_function': No module named 'psycopg2._psycopg aws lambda function
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM