0

Cloud ML을 사용하는 Google 클라우드 프로젝트 용 Google 클라우드 셸 환경을 설정하려고합니다. |클라우드 용 Google 클라우드 셸 환경 설정 ML

https://raw.githubusercontent.com/GoogleCloudPlatform/cloudml-samples/master/tools/setup_cloud_shell.sh 을 :

나는 그들의 설정 페이지 자체의 지시에 따라 오전 :

Getting Setup | Google Cloud Machine Learning

나는 나의 cloud shell에서이 명령을 실행 bash는

이에 대한 OUPUT 추적의 마지막 부분이었다

  • 에코 '성공! 환경에는 필요한 도구와 종속성이 있습니다. ' 성공! 사용자 환경에는 필수 도구 및 종속성이 있습니다.

이 명령을

수출 PATH = $ {HOME}/지방/빈 :. $ {PATH}

는 더 OUPUT를 생성하지 않습니다.

그리고 마지막으로 명령

환경 확인 :

https://raw.githubusercontent.com/GoogleCloudPlatform/cloudml-samples/master/tools/check_environment.py 을 |

[email protected]cloudshell:~$ 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

해결되었습니다.

환경에 맞게 프로젝트를 설정해야합니다. 당신이 현재 프로젝트를하지 않고 클라우드 셸을 시작 것 같습니다 원래 출력에 "@cloudshell"문자열에서

gcloud 설정 세트 프로젝트 귀하의 프로젝트-ID

+0

예 :이 명령을 사용할 수 있습니다 클라우드 콘솔에서 일반적으로 현재 프로젝트는 현재 Cloud Console 프로젝트와 일치하도록 셸에서 자동으로 설정됩니다. –

관련 문제