gpt4 book ai didi

python - 我无法在 Ubuntu 上初始化 Google Cloud SDK

转载 作者:IT王子 更新时间:2023-10-28 23:57:53 24 4
gpt4 key购买 nike

我在我的 Ubuntu 上下载了适用于 Python 的 Google Cloud SDK。 ( https://cloud.google.com/sdk/docs/quickstart-linux#before-you-begin )

然后我按照页面中的步骤操作,但是当我运行时

gcloud init

我明白了

Could not setup log file in /home/ariel/.config/gcloud/logs, (IOError: [Errno 13] Permission denied: '/home/ariel/.config/gcloud/logs/2016.05.25/11.54.37.438036.log') Welcome! This command will take you through the configuration of gcloud.

ERROR: (gcloud.init) Failed to create the default configuration. Ensure your have the correct permissions on: [/home/ariel/.config/gcloud/configurations]. Could not create directory [/home/ariel/.config/gcloud/configurations]: Permission denied.

Please verify that you have permissions to write to the parent directory.

PS:然后我找到了这个其他文件https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python (好像一样但是是40.2MB,我用的是7.5MB)

谢谢!爱丽儿

最佳答案

用户 gcbirzan 在 irc channel (我推荐)回答了我的问题,它是 irc.freenode.net 上的 #appengine

我必须运行这个:

sudo chown ariel -R /home/ariel/.config/gcloud

我也把聊天记录留在这里:

[14:12] Q: Hello

[14:13] Q: I am just beggining with app engine, and for instance, anyone could tell me what is the difference between this file((https://cloud.google.com/sdk/docs/quickstart-linux#before-you-begin)) and this one ((https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python)) (seems to be the same but it is 40.2MB and the one I used was 7.5MB)

[14:15] A: Google cloud sdk is gcloud and friends, you need it for flex and other google cloud platform stuff.

[14:15] A: The appengine sdk is the one that comes with a local dev server and all the other stuff, and is probably what you want

[14:15] A: well. go wild, get both

[14:16] Q: ok

[14:16] Q: thanks

[14:16] Q: and could you please help me with this ? I cant init Google Cloud SDK on Ubuntu

[14:17] A: sudo chown ariel -R /home/ariel/.config/gcloud

[14:19] Q: it works !

关于python - 我无法在 Ubuntu 上初始化 Google Cloud SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37441174/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com