Using Thonny setup as Python for Google Cloud SDK - Windows 10

42 views
Skip to first unread message

leica

unread,
Nov 20, 2020, 2:46:18 AM11/20/20
to thonny
I guess this goes to a broader question of correctly setting the environment variable path in Windows (PYTHONPATH?)

Basically I want to install the Google Cloud SDK and point to my Thonny installation rather than install another version of Python.

The SDK variable is called CLOUDSDK_PYTHON - would I just set the path to the Thonny program folder as opened from the Thonny IDE? Or point it directly at the python.exe? Or the folder python.exe lives in?

I should probably set this as my default PYTHONPATH too at a guess?
 

Aivar Annamaa

unread,
Nov 20, 2020, 12:48:33 PM11/20/20
to thonny
Hi!

Unfortunately I don't know about Google Cloud SDK. If it need to run a Python interpreter and CLOUDSDK_PYTHON is the only variable for configuring this, then I suspect it needs to point to Python executable. In this case I don't think PYTHONPATH is required, because each Python executable is supposed to know where its library is. I recommend you just try.

Best regards,
Aivar

Reply all
Reply to author
Forward
0 new messages