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