Py学习  »  Python

Google Sheets API在Mac M1 Python上运行缓慢

haymovich • 4 年前 • 1559 次点击  

我试图做一个简单的阅读,从M1 MacBook Pro到google API。

一切都很好,但做一个简单的阅读需要很长时间,大约5-9分钟。

现在,我正试着在我的Windows Pc上做,效果很好。

有人知道如何解决这个问题,甚至为什么吗?

import gspread
from oauth2client.service_account import ServiceAccountCredentials


scope = ['https://spreadsheets.google.com/feeds',]

creds = ServiceAccountCredentials.from_json_keyfile_name("jsonFile.json", scope)

client = gspread.authorize(creds)

sheet = client.open_by_key("Rent").sheet1


data = sheet.get_all_records()
print(data)
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/136962
文章 [ 1 ]  |  最新文章 4 年前