I tried installing tensorflow on my ubuntu 14.04 64bit machine:
sudo pip2 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp27-none-linux_x86_64.whl
for python 2.7
When I run import tensorflow as tf
in the console I get error
Error importing tensorflow. Unless you are using bazel, you should not try to import tensorflow from its source directory; please exit the tensorflow source tree, and relaunch your python interpreter from there.
Google didn't provide a good answer to this, any thoughts?
You cannot import tensorflow whilst you are in the tensorflow source directory. Change Directory i.e. cd ..
first before running python.
I've emphasized the key part of your error: "Error importing tensorflow. Unless you are using bazel, you should not try to import tensorflow from its source directory; please exit the tensorflow source tree, and relaunch your python interpreter from there."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With