import gspread
gc = gspread.login(‘the.email.address@gmail.com’,’password’)
AttributeError:' module'对象没有属性' login'
答案 0 :(得分:1)
我所知道的gsspread
没有login
方法!
我猜你要找的是authorize
。
理想情况下你应该这样做:
import gspread
gc = gspread.authorize(credentials) # check link below on how to obtain the credentials
gsspread在此处详细记录了如何获取credentials
的程序 - http://gspread.readthedocs.io/en/latest/oauth2.html