Import error: no module named cloud.ml

I am trying to follow the instructions to use local predictions in tensor flow, as described here . Running the command gcloud ml-engine local predict --model-dir=~/PycharmProjects/nlc/export/1/ --json-instances=test.jsongives me an error:

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__'".

What do I need to install in order to receive the package google.cloud.ml? Everything he says on this link,

This requires the TensorFlow SDK to be installed locally

Tensorflow works correctly on my system and python -c 'import tensorflow as tf; print(tf.__version__)'outputs 1.0.1. I also took care of installing the python utilities by running pip install -U google-api-python-client. What else do I need to install?

This is done on a virtual machine running Ubuntu, so it fulfills the requirement:

Only Debian-based systems are currently supported.

+1
1

gcloud, โ€‹โ€‹ (2017/03/15). - , ,

gcloud components update

.

+3

Source: https://habr.com/ru/post/1672175/


All Articles