Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 ImportError while using tensorflow
#1
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
Quote
#2
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
pratheep likes this post
Quote
#3
(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...
Quote

Top Page

Forum Jump:


Users browsing this thread: 1 Guest(s)