Set GOOGLE_APPLICATION_CREDENTIALS in Python project to use Google API

后端 未结 4 1496
死守一世寂寞
死守一世寂寞 2020-12-23 09:42

I am a programming beginner and thing I\'m trying to learn how to use google API with Python.

I have:

  1. created a project on Google Cloud an
4条回答
  •  死守一世寂寞
    2020-12-23 10:14

    Another way to test this is to go into the terminal and type:

    # Linux/Unix
    set | grep GOOGLE_APPLICATION_CREDENTIALS 
    

    or

    # Windows:
    set | Select-String -Pattern GOOGLE_APPLICATION_CREDENTIALS 
    

    This will show you the environment variable and the path where it is located. If this returns nothing then you have not set the variable or you may have the wrong path set

提交回复
热议问题