ich nach dem turtorial https://www.tensorflow.org/install/install_windows, aber wenn ich versuche, tensorflow zu importieren, kommt es mit einem Fehler:Nameerror: name ‚Kern‘ ist nicht definiert
Traceback (most recent call last):
File "", line 1, in import tensorflow as tf
File "D:\Python 3.5.3\lib\site-packages\tensorflow__init__.py", line 51, in
del core
NameError: name 'core' is not defined
Der tensorflow Installationsbefehl
istpip3 install --upgrade tensorflow
Der vollständige Code ist hier >
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
Die python-Version i s 3.5.3 nebenbei
Gibt es eine Möglichkeit, dieses Problem zu lösen? Danke im Voraus.
Können Sie Ihren Befehl einfügen, um TensorFlow zu installieren? – vanloc
Ich folge dem Tutorial von Tensorflow offiziellen Website, der Link ist hier https://www.tensorflow.org/install/install_windows. Der Befehl, den ich verwendet habe, ist: pip3 install --upgrade tensorflow –
Können Sie vollständigen Code posten? – vanloc