为 Cloud ML 设置 Google 云 shell 环境
Setup Google cloud shell environment for Cloud ML
我正在尝试为使用 Cloud ML 的 google 云项目设置 google 云 shell 环境。
我正在按照他们的设置页面上的说明操作:
Getting Setup | Google Cloud Machine Learning
我在 cloud shell
:
中执行了这个命令
curl
https://raw.githubusercontent.com/GoogleCloudPlatform/cloudml-samples/master/tools/setup_cloud_shell.sh
| bash
输出跟踪的最后一部分是:
- echo 'Success! Your environment has the required tools and dependencies.' Success! Your environment has the required tools and
dependencies.
这个命令:
export PATH=${HOME}/.local/bin:${PATH}
不产生任何输出。
最后是检查环境的命令:
curl
https://raw.githubusercontent.com/GoogleCloudPlatform/cloudml-samples/master/tools/check_environment.py
| python
产生这个输出:
vineetkaushik053@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'"
}
]
}
]
}
}
何时应该生产:
"Success! Your environment is configured correctly." 当脚本成功完成时。
请告诉我如何解决这个问题,以便我可以转到设置的下一部分。
已解决。
需要为环境设置项目。您可以使用此命令:
gcloud config set project your-project-ID
我正在尝试为使用 Cloud ML 的 google 云项目设置 google 云 shell 环境。
我正在按照他们的设置页面上的说明操作:
Getting Setup | Google Cloud Machine Learning
我在 cloud shell
:
curl https://raw.githubusercontent.com/GoogleCloudPlatform/cloudml-samples/master/tools/setup_cloud_shell.sh | bash
输出跟踪的最后一部分是:
- echo 'Success! Your environment has the required tools and dependencies.' Success! Your environment has the required tools and dependencies.
这个命令:
export PATH=${HOME}/.local/bin:${PATH}
不产生任何输出。
最后是检查环境的命令:
curl https://raw.githubusercontent.com/GoogleCloudPlatform/cloudml-samples/master/tools/check_environment.py | python
产生这个输出:
vineetkaushik053@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'"
}
]
}
]
}
}
何时应该生产:
"Success! Your environment is configured correctly." 当脚本成功完成时。
请告诉我如何解决这个问题,以便我可以转到设置的下一部分。
已解决。
需要为环境设置项目。您可以使用此命令:
gcloud config set project your-project-ID