python - Windows 上的 Gcloud 命令(使用 git bash)正在记录错误 :

当我在 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/

相关文章:

wordpress - Disqus iframe 透明度不适用于 Chrome 87

scala - scala中以下两种模式匹配案例有什么区别

python - 删除txt中的特定字符

c++ - 仅当使用 unordered_map 而不是 vector 时,将 const 作为此参

c - 打印函数,C语言的hello world

asp.net-core - 415 ASP.NET Core Web API 中不支持的媒体类型

node.js - docker-compose npm install && npm start

kubernetes - 如何使用 HELM 强制重新部署

azure-devops - Azure Devops - Terraform 任务失败并出现错误

r - 使用向量和定义的标量在 R 中生成金字塔