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.sh
in the same folder and follow the prompts.
That's all.
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:
import os
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
Related Topics
Python Error - "Importerror: Cannot Import Name 'Dist'"
Letsencrypt Importerror: No Module Named Interface on Amazon Linux While Renewing
Why am I Getting Socket.Gaierror: [Errno -2] from Python Httplib
Why Is Time.Clock Giving a Greater Elapsed Time Than Time.Time
Python - Can't Open Lib 'Libtdsodbc.So':File Not Found
Cannot Save Matplotlib Animation With Ffmpeg
Python Detect Linux Shutdown and Run a Command Before Shutting Down
How to Know If a Grpc Server Is Available
Socket Shutdown and Rebind - How to Avoid Long Wait
Reading from Linux Command Line with Python
How to Connect to Flask Local Server
Can't Build Matplotlib (Png Package Issue)
Killing Sudo-Started Subprocess in Python
Update Python on Linux 2.7 to 3.5