google cloud sdk: set environment variable_ python -- linux
This is a very easy thing to solve. The native python command on the Arch command line is actually for Python 3. The SDK requires Python2.7 and the
Just go to the google-cloud-sdk folder and open the install.sh file.
Change the CLOUDSDK_PYTHON="python" value to CLOUDSDK_PYTHON="python2.7"
Rerun the install with the command
./install.shin the same folder and follow the prompts.
Setting GOOGLE_APPLICATION_CREDENTIALS for BigQuery Python CLI
First - Thanks for the code - this provided to be very useful.
I would also suggest adding setting the environmental variable directly in your code - as not to set it for every environment you work on.
you can use the following code:
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "path_to_your_.json_credential_file"
I found this useful when switching between different projects that require different credentials.
How to set GAE_SDK_ROOT environment variable?
export GAE_SDK_ROOT= wherever you unzipped the Google App Engine SDK