Google API authorization with Python

Need help me with an example of Google Drive API or Search Console API (or other Google API) authorization?
I use for python script and created “service_account.json” for authorization

from google.oauth2 import service_account
from googleapiclient.discovery import build
scopes = [‘’]
creds_file = ‘service_credentials.json’
creds = service_account.Credentials.from_service_account_file(creds_file, scopes=scopes)
drive_service = build(‘drive’, ‘v3’, credentials=creds)

Traceback (most recent call last):
File “”, line 1, in
from google.oauth2 import service_account
File “/home/runner/MyScript/venv/lib/python3.10/site-packages/google/oauth2/”, line 2, in
from google.oauth2.service_account import Credentials
ImportError: cannot import name ‘Credentials’ from partially initialized module ‘google.oauth2.service_account’ (most likely due to a circular import) (/home/runner/MyScript/venv/lib/python3.10/site-packages/google/oauth2/

any working examples?
or maybe other authorization process I should use