Python Forum

Full Version: ImportError while using tensorflow
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Guys please help me...
I got a problem in importing tensor flow
help me to solve the problem

HERE'S MY CODE
import tensorflow as tf
node1 = tf.constant(3.0)
node2 = tf.constant(4.0)
print(node1)
HERE'S THE ERROR
Error:
Traceback (most recent call last): File "/Users/admin/Documents/firsttf.py", line 1, in <module> import tensorflow as tf ImportError: Bad magic number in /Users/admin/Documents/tensorflow.pyc
you need to delete the tensorflow.pyc file that was created when running your file with the old name

https://stackoverflow.com/a/514395/4046632
(Mar-16-2018, 11:00 AM)buran Wrote: [ -> ]you need to delete the tensorflow.pyc file that was created when running your file with the old name https://stackoverflow.com/a/514395/4046632
Thank You BURAN...