0

我想为我的谷歌云项目设置谷歌云外壳环境,使用云ML。设置谷歌云外壳云环境ML

我下面的设置页面上的说明:

Getting Setup | Google Cloud Machine Learning

我在cloud shell执行此命令:

卷曲 https://raw.githubusercontent.com/GoogleCloudPlatform/cloudml-samples/master/tools/setup_cloud_shell.sh |庆典

输出中跟踪此的最后部分是:

  • 回声“成功!您的环境具有所需的工具和依赖关系。'成功!您的环境具有所需的工具和 依赖项。

此命令:

出口PATH = $ {HOME}/local/bin目录:$ {PATH}

可生产没有输出。

最后的命令检查环境:

卷曲 https://raw.githubusercontent.com/GoogleCloudPlatform/cloudml-samples/master/tools/check_environment.py |蟒蛇

产生这样的输出:

[email protected]:~$ curl https://raw.githubusercontent.com/GoogleCloudPlatform/cloudml-samples/master/tools/check_environment.py | python 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
100 3814 100 3814 0  0 17274  0 --:--:-- --:--:-- --:--:-- 17257 
You are using pip version 8.1.1, however version 9.0.1 is available. 
You should consider upgrading via the 'pip install --upgrade pip' command. 
You are using pip version 8.1.1, however version 9.0.1 is available. 
You should consider upgrading via the 'pip install --upgrade pip' command. 
Your active configuration is: [cloudshell-11180] 
ERROR: Unable to list Cloud ML models: { 
    "error": { 
    "code": 400, 
    "message": "Field: parent Error: Name should be in the form of 'projects/your-project-id'", 
    "status": "INVALID_ARGUMENT", 
    "details": [ 
     { 
     "@type": "type.googleapis.com/google.rpc.BadRequest", 
     "fieldViolations": [ 
      { 
      "field": "parent", 
      "description": "Name should be in the form of 'projects/your-project-id'" 
      } 
     ] 
     } 
    ] 
    } 
} 

当它应该是生产:

“!成功您的环境正确配置”当脚本成功完成时。

请告诉我如何解决这个问题,以便我可以移动到设置的下一部分。

回答

3

解决了这个问题。

需要为环境设置项目。像你无需当前项目启动云壳牌在你原来的输出,它看起来

gcloud配置组项目中的项目-ID

+0

是的,从“@cloudshell”字符串:您可以使用此命令在云端控制台中。通常情况下,当前项目会自动设置在shell中以匹配当前的云控制台项目。 –