问题描述
当我尝试按照 https://developers.google上的步骤安装gcutil时. com/compute/docs/gcutil/
这是C:\ gcutil \ google-cloud-sdk \ bin的bin目录内容:
here is the bin dir contents of C:\gcutil\google-cloud-sdk\bin :
,但是gcutil似乎无法正确安装.当我尝试运行gcutil时,收到错误消息:
but gcutil does not seem to install correctly. When I attempt to run gcutil I receive the error :
C:\gcutil\google-cloud-sdk\bin>gcutil
'gcutil' is not recognized as an internal or external command,
operable program or batch file.
gcutil应该不是.bat文件命令吗?如何调用gcutil?
Should gcutil not be a .bat file command ? How can I invoke gcutil ?
推荐答案
除非您需要gcutil的ssh功能,否则无需安装cygwin.
You do not need to install cygwin unless you need the ssh functionality of gcutil.
最初不能运行gcutil的原因是因为它是python脚本(并且未在命令前加上"python"前缀).此后,我们将其更改为.cmd脚本,因此它应在Windows中更本地地工作.如果将bin目录添加到PATH,则应该可以在任何地方运行gcutil.
The reason you could not initially run gcutil is because it was a python script (and you were not prefixing the command with 'python'). We have since changed this to be a .cmd script, so it should work more natively in windows. If you add the bin directory to your PATH, you should be able to run gcutil from anywhere.
这篇关于无法从命令行运行gcutil的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!