我正在尝试按照说明在 tensorflow 中使用本地预测,如here所述。 。运行命令 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
软件包?该链接上的所有内容是
It requires the TensorFlow SDK be installed locally
Tensorflow 在我的系统上正常工作,python -c 'import tensorflow as tf; print(tf.__version__)'
输出 1.0.1
。我还确保通过运行 pip install -U google-api-python-client 来安装 python 实用程序。我还需要安装什么?
正在运行 Ubuntu 的虚拟机上尝试此操作,以便满足要求:
Only Debian based systems are supported at this time.
最佳答案
这是 gcloud 的一个已知错误,将于明天 (2017/03/15) 的版本中修复。明天某个时候,请运行
gcloud components update
对于给您带来的不便,我们深表歉意。
关于python - 导入错误 : no module named cloud. 毫升,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42788485/