我正在尝试遵循以下准则:
https://developers.google.com/drive/v3/web/quickstart/python
然后,我安装了 pipenv 和 google-api-python-client,我打开了 Drive API。
因此,运行以下命令后:
pipenv run python quickstart.py
它打开了一个浏览器,请求权限,但应用程序卡住了以下消息:
...
If your browser is on a different machine then exit and re-run this
application with the command-line parameter
--noauth_local_webserver
我应该怎么办?我想列出 Google Drive 文件。我试过运行 Python 2.7,但我遇到了同样的问题。
我的点子文件:
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[packages]
requests = "*"
google-api-python-client = "*"
[dev-packages]
[requires]
python_version = "3.6"