Имею данный код:
from google.cloud import translate
client = translate.Client()
client.translate(['street'])
Получаю данную ошибку:
Traceback (most recent call last):
File "c:/MEDIA/Python/Dev/MyDict/manage.py", line 2, in <module>
client = translate.Client()
File "C:\Program Files\Python38\lib\site-packages\google\cloud\translate_v2\client.py", line 82, in __init__
super(Client, self).__init__(credentials=credentials, _http=_http)
File "C:\Program Files\Python38\lib\site-packages\google\cloud\client.py", line 132, in __init__
credentials, _ = google.auth.default()
File "C:\Program Files\Python38\lib\site-packages\google\auth\_default.py", line 321, in default
raise exceptions.DefaultCredentialsError(_HELP_MESSAGE)
google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information, please see https://cloud.google.com/docs/authentication/getting-started