Jacob
Jacob

Reputation: 159

Installing Tensorflow 1.3 (No module named tensorflow)

I am initializing a new VM with Ubuntu 17 on Google Cloud Platform, I then SSH into the newly created VM, upload this script and run it...

#! /bin/bash
sudo apt-get install python-pip
sudo pip install --upgrade pip
sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

Now, this works for me, when I launch a Python interactive environment

import tensorflow as tf

does not throw an error, however, if I run the same script but replace

tensorflow-0.5.0-cp27-none-linux_x86_64.whl

with

tensorflow-1.3.0-cp27-none-linux_x86_64.whl

I get:

ImportError: No module named tensorflow

... incredibly frustrating, especially since the contrib library doesn't seem to be apart of the 0.5 version... any ideas of what is going on, perhaps how I can first install 0.5 and then upgrade to 1.3 ?

Upvotes: 0

Views: 915

Answers (1)

Dhinakaran
Dhinakaran

Reputation: 125

I also get the same then i tried pip install tensorflow after worked fine

Upvotes: 1

Related Questions