问题描述
我在 Google App Engine的Python 中使用了Google Translate API时遇到此错误,但是我不知道如何解决,
I got this error in Google App Engine's Python have used Google Translate API,But I don't know how to fix,
<module>
from apiclient.discovery import build
ImportError: No module named apiclient.discovery
我将尝试设置指示Google App Engine SDK的环境,然后再次上传到Google Apps Engine,总是收到错误,
I'll try to set environment which indicates to Google App Engine SDK,And upload to Google Apps Engine again, always get the 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的帮助,我通过添加以下文件夹解决了问题,
UPDATE : FixedFollow Nijjin's help,I fixed problems by adding the following folders,
apiclient,gflags,httplib2,oauth2client,uritemplate
如果您仍然遇到问题,请在下面的本页答案中考虑以获取更多信息.前任.:Varum答案,等等...
推荐答案
您应该可以通过以下简单安装获得这些依赖项:
You should be able to get these dependencies with this simple install:
sudo pip install --upgrade google-api-python-client
这篇关于为什么我的使用Translate API的Python App Engine应用程序出现ImportError错误:没有名为apiclient.discovery的模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!