Skip to content Skip to sidebar Skip to footer

Google_application_credentials=apikey.json 'google_application_credentials' Is Not Recognized As An Internal Or External

I want to use google API using python by Anaconda prompt. I have followed these steps but it is giving me the error 'GOOGLE_APPLICATION_CREDENTIALS' is not recognized as an interna

Solution 1:

You need to set the environment variable

from terminal like this

export GOOGLE_APPLICATION_CREDENTIALS='/path/to/your/APIKEY.json'

or from your code like this

import os
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "/path/to/your/APIKEY.json"

Post a Comment for "Google_application_credentials=apikey.json 'google_application_credentials' Is Not Recognized As An Internal Or External"