答案 0 :(得分:2)
如果C:\Program Files\Google\GCloud
is in your %PATH%
,更好的做法是:
cd c:\my\path\to\en\empty\folder
gcloud init cognitusonlinecourses
这样可以避免尝试直接在C:\Program Files\Google\GCloud
中执行操作。
OP Ahmad Hijazi确认in the comments尝试使用C:\ Program Files中外的相同命令。{ 但它需要Git:见this answer。
答案 1 :(得分:0)
通常,gcloud安装路径以\bin
结尾。我不知道gcloud在你的机器上是如何安装的,但我希望以下内容能够正常工作:
设置PATH = C:\ Git \ bin; C:\ Program Files \ Google \ cloud sdk \ google-cloud-sdk \ bin
您要查找的目录应包含文件gcloud.cmd
。