我正在尝试按照说明在张量流中使用本地预测,如下所述here https://cloud.google.com/sdk/gcloud/reference/ml-engine/local/predict。运行命令gcloud ml-engine local predict --model-dir=~/PycharmProjects/nlc/export/1/ --json-instances=test.json
给我错误:
ERROR: (gcloud.ml-engine.local.predict) Cannot import google.cloud.ml. Please verify "python -c 'import google.cloud.ml'" works. Please verify the installed cloudml sdk version with: "python -c 'import google.cloud.ml as cloudml; print cloudml.__version__'".
我需要安装什么才能获得google.cloud.ml
包裹?该链接上的所有内容是
需要本地安装TensorFlow SDK
Tensorflow 在我的系统上正常工作并且python -c 'import tensorflow as tf; print(tf.__version__)'
输出1.0.1
。我还确保通过运行来安装 python 实用程序pip install -U google-api-python-client
。我还需要安装什么?
正在运行 Ubuntu 的 VM 上尝试此操作,以便满足要求:
目前仅支持基于 Debian 的系统。
这是 gcloud 的一个已知错误,将在明天 (2017/03/15) 的版本中修复。明天某个时候,请跑步
gcloud components update
不便之处敬请原谅。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)