python - 为什么我使用 Translate API 的 Python App Engine 应用程序收到 ImportError : No module named apiclient. 发现错误?

标签 python google-app-engine google-translate google-api-python-client google-translation-api

我在 Google App Engine 的 Python 使用了 Google Translate API 时遇到了这个错误, 但我不知道如何解决,

<module>
from apiclient.discovery import build
ImportError: No module named apiclient.discovery

我会尝试设置向 Google App Engine SDK 指示的环境, 然后再次上传到 Google Apps Engine,总是报错

Error: Server Error

The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it.

请告诉我如何解决,

谢谢

更新:已修复 跟随 Nijjin 的帮助, 我通过添加以下文件夹解决了问题,

apiclient、gflags、httplib2、oauth2client、uritemplate

如果您仍然有问题,请考虑以下此页面的答案以获取更多信息。前任。 : Varum 答案等...

最佳答案

您应该能够通过这个简单的安装获得这些依赖项:

sudo pip install --upgrade google-api-python-client

这在 quick start page for python 中有描述.

关于python - 为什么我使用 Translate API 的 Python App Engine 应用程序收到 ImportError : No module named apiclient. 发现错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18267749/

相关文章:

javascript - 使用 greybox js 库使用 google tts 显示窗口

python - 多进程池与 asyncio.run_in_executor

python - 在 GAE 中保留任何/所有 Python 数据库对象的审计跟踪

ios - 是否可以在 iOS 上使用 Google Translate api?

localization - 是否有将美国英语 (en_US) 转换为英国英语 (en_GB) 的 API?

node.js - Google Datastore 部分字符串匹配

python - 如何获取 Pandas df.merge() 不匹配的列名

python - 在 cartopy choropleth map 上添加值标签

python - 类型错误: __init__() got an unexpected keyword argument 'checkpoint_callback'

java - 为 Google App Engine 列出 Java 中的属性 - 这是最高效、性能最高的 JDO 代码吗?