Windows版gcloud init

时间:2018-11-01 12:11:59

标签: node.js firebase google-cloud-functions gcloud

我正在Windows 64位中进行此设置。现在,我正在本地配置Gcloud。如果我按如下所示执行init,则出现如下错误

C:\Google Home\testsetup>gcloud init
'"python.exe"' is not recognized as an internal or external command,
operable program or batch file.

在gcloud的install.bat文件中,我更新了python exe的路径,如下所示。我仍然遇到同样的错误。我正在使用“ Visual Studio代码-内部人员” IDE执行gcloud init,我也在命令提示符下尝试过

SETLOCAL EnableDelayedExpansion
SET CLOUDSDK_PYTHON= 'C:\mypath\software\python-3.7.1-amd64.exe'
rem install.bat lives in the root of the Cloud SDK installation directory.
SET CLOUDSDK_ROOT_DIR=%~dp0

IF "%CLOUDSDK_PYTHON%"=="" (
  SET BUNDLED_PYTHON=!CLOUDSDK_ROOT_DIR!\platform\bundledpython\python.exe
  IF EXIST !BUNDLED_PYTHON! (
    SET CLOUDSDK_PYTHON=!BUNDLED_PYTHON!
  ) ELSE (
    FOR %%i in (python.exe) do (SET CLOUDSDK_PYTHON=%%~$PATH:i)
  )
)

0 个答案:

没有答案