我正在尝试将 google.oauth2、google_auth_oauthlib.flow 和 googleapiclient.discovery 用于我的网络应用程序。但我收到这些错误:
Import "google.auth.transport.requests" could not be resolved
Import "google.oauth2.credentials" could not be resolved
Import "googleapiclient.discovery" could not be resolved
输出为: from google.auth.transport.requests import Request ModuleNotFoundError: No module named 'google' 这是我的点子列表:
google 3.0.0
google-api-core 2.8.2
google-api-python-client 2.51.0
google-auth 2.8.0
google-auth-httplib2 0.1.0
google-auth-oauthlib 0.5.2
googleapis-common-protos 1.56.3
gspread 5.4.0
httplib2 0.20.4
oauth2client 4.1.3
oauthlib 3.2.0
requests 2.28.0
requests-oauthlib 1.3.1
我不明白为什么会出现这些错误。我希望你能帮助我。