gpt4 book ai didi

python - 谷歌云 SDK Windows 安装程序错误 : "System cannot find the path specified"

转载 作者:行者123 更新时间:2023-12-03 11:06:59 24 4
gpt4 key购买 nike

当我尝试通过自己的安装程序安装 Google Cloud SDK 时,我得到了这个:

gcloudsdk gcloudsdk3


“Sistem belirtilen yolu bulamiyor”的意思是“系统找不到指定的路径”这是我的环境变量:

envVar

C:/HERE 我的 Python 可执行文件所在的位置。那么谁来告诉我这里发生了什么?另外我的 Python 版本是 3.7.6

编辑:这部分有点长,但这是我的日志文件。我希望它有所帮助。我正在尝试制作一个 CRM 程序,我需要将它连接到云服务。感谢您的帮助!

2020-10-13 00:15:24,919 DEBUG    root            Loaded Command Group: ['gcloud', 'components']
2020-10-13 00:15:24,926 DEBUG root Loaded Command Group: ['gcloud', 'components', 'copy_bundled_python']
2020-10-13 00:15:24,927 DEBUG root Running [gcloud.components.copy-bundled-python] with arguments: []
2020-10-13 00:15:32,618 INFO root Display format: "value(python_location)"
2020-10-13 00:15:32,618 INFO ___FILE_ONLY___ C:\Users\ALICEM~1\AppData\Local\Temp\tmpfffjhsuk\python\python.exe
2020-10-13 00:15:32,623 DEBUG root Metrics reporting process started...

2020-10-13 00:17:18,590 DEBUG    root            Loaded Command Group: ['gcloud', 'components']
2020-10-13 00:17:18,598 DEBUG root Loaded Command Group: ['gcloud', 'components', 'post_process']
2020-10-13 00:17:18,600 DEBUG root Running [gcloud.components.post-process] with arguments: []
2020-10-13 00:18:41,822 INFO root Display format: "none"

最后一个有点长所以我拿了最后一点

2020-10-13 00:17:17,480 INFO     ___FILE_ONLY___ ╔════════════════════════════════════════════════════════════╗

2020-10-13 00:17:17,480 INFO ___FILE_ONLY___ ╠═ Creating backup and activating new installation ═╣

2020-10-13 00:17:17,480 INFO ___FILE_ONLY___ ╚
2020-10-13 00:17:17,480 DEBUG root Attempting to move directory [C:\Users\Ali cem üzüm\AppData\Local\Google\Cloud SDK\google-cloud-sdk] to [C:\Users\Ali cem üzüm\AppData\Local\Google\Cloud SDK\google-cloud-sdk.staging\.install\.backup]
2020-10-13 00:17:17,498 INFO ___FILE_ONLY___ ══════════════════════════════
2020-10-13 00:17:17,498 DEBUG root Attempting to move directory [C:\Users\Ali cem üzüm\AppData\Local\Google\Cloud SDK\google-cloud-sdk.staging] to [C:\Users\Ali cem üzüm\AppData\Local\Google\Cloud SDK\google-cloud-sdk]
2020-10-13 00:17:17,522 INFO ___FILE_ONLY___ ══════════════════════════════
2020-10-13 00:17:17,522 INFO ___FILE_ONLY___ ╝

2020-10-13 00:17:17,609 DEBUG root Updating notification cache...
2020-10-13 00:17:17,609 INFO ___FILE_ONLY___

2020-10-13 00:17:17,612 INFO ___FILE_ONLY___ Performing post processing steps...
2020-10-13 00:17:17,613 DEBUG root Executing command: ['C:\\Users\\ALICEM~1\\AppData\\Local\\Temp\\tmpfffjhsuk\\python\\python.exe', '-S', 'C:\\Users\\Ali cem üzüm\\AppData\\Local\\Google\\Cloud SDK\\google-cloud-sdk\\lib/gcloud.py', 'components', 'post-process']
2020-10-13 00:18:41,872 DEBUG ___FILE_ONLY___
2020-10-13 00:18:41,873 DEBUG ___FILE_ONLY___
2020-10-13 00:18:42,044 INFO ___FILE_ONLY___
Update done!


2020-10-13 00:18:42,049 INFO root Display format: "none"

最佳答案

我建议您仔细检查您的 PATH 变量。

作为per :

“如果由于无法识别 find 命令而导致安装不成功,请确保将 PATH 环境变量设置为包括包含 find 的文件夹。通常,这是 C:\WINDOWS\system32;”

我注意到您添加了日志 :),我想提一下,有时管理员用户名中的特殊字符 (~) 会出现一些问题,所以只是快速测试一下,您能否尝试使用其他用户名称中没有任何特殊字符?

另一种选择是手动安装 Python 2.7 并使用 “CLOUDSDK_PYTHON” 设置环境变量,并直接指向 python.exe。

例如:

C:\HERE\python.exe

最后,我找到了这个Stackoverflow对您有帮助的帖子。

关于python - 谷歌云 SDK Windows 安装程序错误 : "System cannot find the path specified",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64321755/

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