我刚刚开始与Gspread-pandas合作。我立即碰到了一个问题。文档和我能找到的所有教程都说我应该“将下载的JSON移动到〜/ .config / gspread_pandas / google_secret.json”。
我知道它应该坐在主文件夹中,但它不起作用(file path screenshot)。我运行的任何命令都会导致:
Please download json from https://console.developers.google.com/apis/credentials and save as ~/.config/gspread_pandas/google_secret.json
“〜/ .config / gspread_pandas / google_secret.json”位于~/.config/gspread_pandas/google_secret.json
。
您必须使用Windows,然后~
可以扩展为%USERPROFILE%
环境变量,例如C:\Users\<username>
。您误解了“用户主目录”和“项目根目录”。
然后,他们要求您将该文件放入,例如C:\Users\<username>\.config\gspread_pandas\google_secret.json