小编Sub*_*rty的帖子

无法从“google.auth”导入名称“external_account_authorized_user”

from pprint import pprint
from Goo_gle import Create_Service


CLIENT_SECRET_FILE = 'Client_Calendar.json'
API_NAME = 'calendar'
API_VERSION = 'v3'
SCOPES = ['https://www.googleapis.com/auth']


service = Create_Service(CLIENT_SECRET_FILE, API_NAME, API_VERSION, SCOPES)
Run Code Online (Sandbox Code Playgroud)

输出:

Traceback (most recent call last):   File "d:\Play with code\PROGRAMMINGS\Python\Artificial Inteligence\calen_dar.py", line 2, in <module>
    from Goo_gle import Create_Service   File "d:\Play with code\PROGRAMMINGS\Python\Artificial Inteligence\Goo_gle.py", line 5, in <module>
    from google_auth_oauthlib.flow import Flow, InstalledAppFlow   File "C:\Python\lib\site-packages\google_auth_oauthlib\__init__.py", line 21, in <module>
    from .interactive import get_user_credentials   File "C:\Python\lib\site-packages\google_auth_oauthlib\interactive.py", line 27, in <module>
    import google_auth_oauthlib.flow   File "C:\Python\lib\site-packages\google_auth_oauthlib\flow.py", line …
Run Code Online (Sandbox Code Playgroud)

google-oauth google-api-python-client

13
推荐指数
2
解决办法
1万
查看次数