python - 为什么我使用 Translate API 的 Python App Engine

我在 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/

相关文章:

python - 如何使用 Python 的 timeit 为代码段计时以测试性能?

linux - Bash - 如何从给定的文本文件中删除所有空格?

linux - 在 .bashrc 中包含其他文件

linux - 如何从文件中提取单个字节 block ?

python - 在 Python 中转义 HTML 的最简单方法是什么?

python - 如何使用 PIL 将透明 png 图像与另一个图像合并

linux - 带有单引号和双引号的 bash 别名命令

python - 在 Python 中重置生成器对象

linux - 如何查找几分钟前访问/创建的文件

linux - 如何使用 shellscript 解析 XML?