Python Forum
ImportError while using tensorflow
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
Reply
#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
Reply
#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...
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020