0

Remotely connected to my gcloud vm (compute engine) using ssh through gcloud sdk shell and putty. Created a sample python script as per the quickstart: https://cloud.google.com/tpu/docs/quickstart

Trying to run the script but getting error no module named tensorflow. Have both python 2.7.14 and 3.5.4 installed locally. I can run python scripts locally but not in the gcloud shell.

Any help is greatly appreciated Thanks

1
  • Can you run the commands here and tell us if the packages were installed? Commented Apr 6, 2018 at 8:14

1 Answer 1

1

TensorFlow packages have to be installed if you want to use them.

First you have to install pip if you haven't done so already:

sudo apt-get update
sudo apt-get -y upgrade \
&& sudo apt-get install -y python-pip python-dev

When you have pip installed you have to install the TensorFlow packages:

sudo pip install tensorflow

You can follow step by step tutorial how to set up VM instance with TensorFlow in Google Cloud here

Sign up to request clarification or add additional context in comments.

1 Comment

Happy to hear that :) Colud you please accept the answer? Thank you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.