Installing Google Datalab error: No such file or directory when running Create command
Installing Google Datalab error: No such file or directory when running Create command
在 Google 页面上的 installation guide 之后,它对 运行 命令说:
$ gcloud components install datalab
这会安装数据实验室命令,我下次尝试时:
$ datalab create sigma2017
[Errno 2] No such file or directory
来自控制台的图片:
EDIT2
G:sdks gr$ ./google-cloud-sdk/bin/gcloud auth login
Your browser has been opened to visit:
https://accounts.google.com/o/oauth2/auth?redirect_uri=http%3A%2F%2Flocalhost%3A8085%2F&prompt=select_account&response_type=code&client_id=32555940559.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcompute+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Faccounts.reauth&access_type=offline
WARNING: `gcloud auth login` no longer writes application default credentials.
If you need to use ADC, see:
gcloud auth application-default --help
You are now logged in as [g*****.r*********@gmail.com].
Your current project is [*****-******-579]. You can change this setting by running:
$ gcloud config set project PROJECT_ID
G:sdks gr$ ./google-cloud-sdk/bin/datalab create sigma2017 --verbosity=debug
Traceback (most recent call last):
File "/Users/gr/sdks/./google-cloud-sdk/platform/datalab-cli/datalab.py", line 300, in run
email=get_email_address(),
File "/Users/gr/sdks/./google-cloud-sdk/platform/datalab-cli/datalab.py", line 200, in get_email_address
'value(account)', '--filter', 'status:ACTIVE']).strip()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[Errno 2] No such file or directory
G:sdks gr$
数据实验室安装似乎失败了。请检查以下两点。
$ ls ./google-cloud-sdk/bin/
$ gcloud components list
并显示您安装该组件的完整消息。
datalab 命令需要 gcloud 命令在您的路径中可用。尝试将 ./google-cloud-sdk/bin/ 添加到您的 PATH 或从该目录添加 运行ning。
原答案:
从您的屏幕截图来看,get_email_account 似乎失败了。你可以 运行 'gcloud auth login',它将让你登录并设置你的帐户电子邮件吗?
在 Google 页面上的 installation guide 之后,它对 运行 命令说:
$ gcloud components install datalab
这会安装数据实验室命令,我下次尝试时:
$ datalab create sigma2017
[Errno 2] No such file or directory
来自控制台的图片:
EDIT2
G:sdks gr$ ./google-cloud-sdk/bin/gcloud auth login
Your browser has been opened to visit:
https://accounts.google.com/o/oauth2/auth?redirect_uri=http%3A%2F%2Flocalhost%3A8085%2F&prompt=select_account&response_type=code&client_id=32555940559.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcompute+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Faccounts.reauth&access_type=offline
WARNING: `gcloud auth login` no longer writes application default credentials.
If you need to use ADC, see:
gcloud auth application-default --help
You are now logged in as [g*****.r*********@gmail.com].
Your current project is [*****-******-579]. You can change this setting by running:
$ gcloud config set project PROJECT_ID
G:sdks gr$ ./google-cloud-sdk/bin/datalab create sigma2017 --verbosity=debug
Traceback (most recent call last):
File "/Users/gr/sdks/./google-cloud-sdk/platform/datalab-cli/datalab.py", line 300, in run
email=get_email_address(),
File "/Users/gr/sdks/./google-cloud-sdk/platform/datalab-cli/datalab.py", line 200, in get_email_address
'value(account)', '--filter', 'status:ACTIVE']).strip()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[Errno 2] No such file or directory
G:sdks gr$
数据实验室安装似乎失败了。请检查以下两点。
$ ls ./google-cloud-sdk/bin/
$ gcloud components list
并显示您安装该组件的完整消息。
datalab 命令需要 gcloud 命令在您的路径中可用。尝试将 ./google-cloud-sdk/bin/ 添加到您的 PATH 或从该目录添加 运行ning。
原答案:
从您的屏幕截图来看,get_email_account 似乎失败了。你可以 运行 'gcloud auth login',它将让你登录并设置你的帐户电子邮件吗?