I am new to tensorflow. I have installed tensorflow by the following steps:
$ conda create -n tensorflow pip python=3.6 $ source activate tensorflow (tensorflow) $ pip install --ignore-installed --upgrade \ https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.8.0-cp36-cp36m-linux_x86_64.whl(C.P.U. only)
but when I tried to run the following program:
import tensorflow as tf
hello=tf.constant("Hello,TensorFlow!")
sess=tf.Session()
print=(sess.run(hello))
I got this error in spyder
:
ModuleNotFoundError: No module named 'tensorflow'
whereas, python
terminal I got this error:
2018-05-16 13:54:34.054511: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA.
Can anybody please tell me what could be the possible reason?