当我在 Windows PowerShell
上运行时,所有命令都工作正常。
起初我无法从 .sh
脚本文件或 Git Bash 终端运行任何 gcloud
命令。
似乎 git bash
无法找到 gcloud
SDK 附带的捆绑 Python
安装。
所以我也安装了适用于 Windows 的 Python。
现在我可以从 PowerShell
、.sh 文件
和 Git bash
运行它。
从 PowerShell
中,我得到了一个干净的日志,如下所示:
但是我从 .sh
脚本文件或 Git bash
窗口运行它。这会被记录下来:
它似乎工作正常,但 WindowsApps/python3
出现此 Permission Denied
错误。
我怎样才能摆脱它?
最佳答案
刚找到另一个问题的答案:"Permission Denied" trying to run Python on Windows 10
我必须这样做来修复它:
关于python - Windows 上的 Gcloud 命令(使用 git bash)正在记录错误 : WindowsApps/python3: permission denied,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65020858/