Python中文
首页
教程
问答
标签
搜索
登录
注册
GSpread ImportError:没有名为oauth2client.service_acoun的模块
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>好的,我正在跟随成为一个技术营销课程,我正在努力学习如何管理谷歌电子表格与GSpread。我已经在<a href="http://gspread.readthedocs.io/en/latest/oauth2.html" rel="noreferrer">http://gspread.readthedocs.io/en/latest/oauth2.html</a>跟踪了文档。我已经按照上面第二个URL中的步骤运行了一个包含以下代码的文档:</p> <pre><code>import gspread from oauth2client.service_account import ServiceAccountCredentials scope = ['https://spreadsheets.google.com/feeds'] credentials = ServiceAccountCredentials.from_json_keyfile_name('DFS Google Sheets Data Imports-7205de852ff7.json', scope) gc = gspread.authorize(credentials) wks = gc.open("Authority Scraper").sheet1 wks.update_cell(1,2,"Hello World!") </code></pre> <p>由此我得到了终端中的错误:From oauth2client.service_account import ServiceAccountCredentials ImportError:没有名为oauth2client.service_account的模块</p> <p><a href="http://i.stack.imgur.com/J1fOs.png" rel="noreferrer">terminal error printout</a></p> <p>有人请帮帮我。其他没有模块名为oath2client.service_account的答案对我不起作用。谢谢!</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>运行这个命令对我有效- <code>sudo pip install --upgrade oauth2client</code></p> <p>从oauth2client库<a href="https://github.com/google/oauth2client" rel="noreferrer" title="github">github</a>repo中得到的</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
得到媒体:缩略图url从rss源
1 回答
得到对数正态随机数给定log10均值和log10标准差
4 回答
得到工作,波斯特不
9 回答
得到左半积和右半积的绝对差最小的元素
4 回答
得到幻数错误?
5 回答
得到异常错误“线程中的异常-1(最有可能在解释器关闭期间引发)”,它使用Parami
2 回答
得到循环
9 回答
得到德语的语法变化
3 回答
得到我认为是好的结果,但还不够
10 回答
得到截断svd.transform()返回float16而不是float64
2 回答
得到所有不相交的集合的并集
5 回答
得到所有函数求值组合的矩阵
1 回答
得到扭曲延迟取消错误当使用刮痧时
3 回答
得到控制台.log使用Selenium python从Chrome输出一次,然后调用第二次为空
5 回答
得到操作系统环境通过NSSM运行Python
3 回答
得到数学方程中的表达式
1 回答
得到数据库结构属性
6 回答
得到整数的后三位
3 回答
得到整数的第n位精度
10 回答
得到最低落的reddit评论
9 回答